BrightSide Workbench Full Report + Source Code
org.turro.contacts.SyndicationMap Class Reference
Inheritance diagram for org.turro.contacts.SyndicationMap:
Collaboration diagram for org.turro.contacts.SyndicationMap:

Public Member Functions

 SyndicationMap (Contact contact)
 
int size ()
 
boolean isEmpty ()
 
boolean containsKey (Object key)
 
boolean containsValue (Object value)
 
Syndication get (Object key)
 
Syndication put (String key, Syndication value)
 
Syndication remove (Object key)
 
void putAll (Map<? extends String, ? extends Syndication > m)
 
void clear ()
 
Set< String > keySet ()
 
Collection< Syndicationvalues ()
 
Set< Map.Entry< String, Syndication > > entrySet ()
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 31 of file SyndicationMap.java.

Constructor & Destructor Documentation

◆ SyndicationMap()

org.turro.contacts.SyndicationMap.SyndicationMap ( Contact  contact)

Definition at line 35 of file SyndicationMap.java.

35  {
36  this.contact = contact;
37  }

Member Function Documentation

◆ clear()

void org.turro.contacts.SyndicationMap.clear ( )

Definition at line 90 of file SyndicationMap.java.

90  {
91  throw new UnsupportedOperationException("Not supported yet.");
92  }

◆ containsKey()

boolean org.turro.contacts.SyndicationMap.containsKey ( Object  key)

Definition at line 50 of file SyndicationMap.java.

50  {
51  for(Syndication c : contact.getSyndications()) {
52  if(c.getName().equalsIgnoreCase(key.toString())) {
53  return true;
54  }
55  }
56  return false;
57  }
Set< Syndication > getSyndications()
Definition: Contact.java:403
Here is the call graph for this function:

◆ containsValue()

boolean org.turro.contacts.SyndicationMap.containsValue ( Object  value)

Definition at line 60 of file SyndicationMap.java.

60  {
61  throw new UnsupportedOperationException("Not supported yet.");
62  }

◆ entrySet()

Set<Map.Entry<String, Syndication> > org.turro.contacts.SyndicationMap.entrySet ( )

Definition at line 113 of file SyndicationMap.java.

113  {
114  HashSet<Entry<String, Syndication>> set = new HashSet();
115  for(final Syndication s : contact.getSyndications()) {
116  set.add(new Entry<String, Syndication>() {
117  @Override
118  public String getKey() {
119  return s.getName();
120  }
121  @Override
122  public Syndication getValue() {
123  return s;
124  }
125  @Override
126  public Syndication setValue(Syndication value) {
127  throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
128  }
129  });
130  }
131  return set;
132  }
Here is the call graph for this function:

◆ get()

Syndication org.turro.contacts.SyndicationMap.get ( Object  key)

Definition at line 65 of file SyndicationMap.java.

65  {
66  for(Syndication c : contact.getSyndications()) {
67  if(c.getName().equalsIgnoreCase(key.toString())) {
68  return c;
69  }
70  }
71  return null;
72  }
Here is the call graph for this function:

◆ isEmpty()

boolean org.turro.contacts.SyndicationMap.isEmpty ( )

Definition at line 45 of file SyndicationMap.java.

45  {
46  return contact.getSyndications().isEmpty();
47  }
Here is the call graph for this function:

◆ keySet()

Set<String> org.turro.contacts.SyndicationMap.keySet ( )

Definition at line 95 of file SyndicationMap.java.

95  {
96  Set<String> set = new HashSet<>();
97  for(Syndication c : contact.getSyndications()) {
98  set.add(c.getName());
99  }
100  return set;
101  }
Here is the call graph for this function:

◆ put()

Syndication org.turro.contacts.SyndicationMap.put ( String  key,
Syndication  value 
)

Definition at line 75 of file SyndicationMap.java.

75  {
76  throw new UnsupportedOperationException("Not supported yet.");
77  }

◆ putAll()

void org.turro.contacts.SyndicationMap.putAll ( Map<? extends String, ? extends Syndication m)

Definition at line 85 of file SyndicationMap.java.

85  {
86  throw new UnsupportedOperationException("Not supported yet.");
87  }

◆ remove()

Syndication org.turro.contacts.SyndicationMap.remove ( Object  key)

Definition at line 80 of file SyndicationMap.java.

80  {
81  throw new UnsupportedOperationException("Not supported yet.");
82  }

◆ size()

int org.turro.contacts.SyndicationMap.size ( )

Definition at line 40 of file SyndicationMap.java.

40  {
41  return contact.getSyndications().size();
42  }
Here is the call graph for this function:

◆ values()

Collection<Syndication> org.turro.contacts.SyndicationMap.values ( )

Definition at line 104 of file SyndicationMap.java.

104  {
105  Collection<Syndication> list = new ArrayList<>();
106  for(Syndication c : contact.getSyndications()) {
107  list.add(c);
108  }
109  return list;
110  }
Here is the call graph for this function:

The documentation for this class was generated from the following file: