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

Public Member Functions

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

Detailed Description

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

Definition at line 30 of file CommentMap.java.

Constructor & Destructor Documentation

◆ CommentMap()

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

Definition at line 34 of file CommentMap.java.

34  {
35  this.contact = contact;
36  }

Member Function Documentation

◆ clear()

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

Definition at line 89 of file CommentMap.java.

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

◆ containsKey()

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

Definition at line 49 of file CommentMap.java.

49  {
50  for(Comment c : contact.getComments()) {
51  if(c.getComment().contains(key.toString())) {
52  return true;
53  }
54  }
55  return false;
56  }
Set< Comment > getComments()
Definition: Contact.java:415
Here is the call graph for this function:

◆ containsValue()

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

Definition at line 59 of file CommentMap.java.

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

◆ entrySet()

Set<Entry<String, Comment> > org.turro.contacts.CommentMap.entrySet ( )

Definition at line 108 of file CommentMap.java.

108  {
109  HashSet<Entry<String, Comment>> set = new HashSet();
110  for(final Comment c : contact.getComments()) {
111  set.add(new Entry<String, Comment>() {
112  @Override
113  public String getKey() {
114  return c.getComment();
115  }
116  @Override
117  public Comment getValue() {
118  return c;
119  }
120  @Override
121  public Comment setValue(Comment value) {
122  throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
123  }
124  });
125  }
126  return set;
127  }
Here is the call graph for this function:

◆ get()

Comment org.turro.contacts.CommentMap.get ( Object  key)

Definition at line 64 of file CommentMap.java.

64  {
65  for(Comment c : contact.getComments()) {
66  if(!c.isEmpty() && c.getComment().contains(key.toString())) {
67  return c;
68  }
69  }
70  return null;
71  }
Here is the call graph for this function:

◆ isEmpty()

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

Definition at line 44 of file CommentMap.java.

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

◆ keySet()

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

Definition at line 94 of file CommentMap.java.

94  {
95  throw new UnsupportedOperationException("Not supported yet.");
96  }

◆ put()

Comment org.turro.contacts.CommentMap.put ( String  key,
Comment  value 
)

Definition at line 74 of file CommentMap.java.

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

◆ putAll()

void org.turro.contacts.CommentMap.putAll ( Map<? extends String, ? extends Comment m)

Definition at line 84 of file CommentMap.java.

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

◆ remove()

Comment org.turro.contacts.CommentMap.remove ( Object  key)

Definition at line 79 of file CommentMap.java.

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

◆ size()

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

Definition at line 39 of file CommentMap.java.

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

◆ values()

Collection<Comment> org.turro.contacts.CommentMap.values ( )

Definition at line 99 of file CommentMap.java.

99  {
100  Collection<Comment> list = new ArrayList<>();
101  for(Comment c : contact.getComments()) {
102  list.add(c);
103  }
104  return list;
105  }
Here is the call graph for this function:

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