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

Public Member Functions

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

Detailed Description

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

Definition at line 31 of file FieldMap.java.

Constructor & Destructor Documentation

◆ FieldMap()

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

Definition at line 35 of file FieldMap.java.

35  {
36  this.contact = contact;
37  }

Member Function Documentation

◆ clear()

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

Definition at line 90 of file FieldMap.java.

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

◆ containsKey()

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

Definition at line 50 of file FieldMap.java.

50  {
51  for(FieldValue fv : contact.getFieldValues()) {
52  if(getKeyString(fv).equalsIgnoreCase(key.toString())) {
53  return true;
54  }
55  }
56  return false;
57  }
Set< FieldValue > getFieldValues()
Definition: Contact.java:427
Here is the call graph for this function:

◆ containsValue()

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

Definition at line 60 of file FieldMap.java.

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

◆ entrySet()

Set<Entry<String, FieldValue> > org.turro.contacts.FieldMap.entrySet ( )

Definition at line 113 of file FieldMap.java.

113  {
114  HashSet<Entry<String, FieldValue>> set = new HashSet();
115  for(final FieldValue fv : contact.getFieldValues()) {
116  set.add(new Entry<String, FieldValue>() {
117  @Override
118  public String getKey() {
119  return getKeyString(fv);
120  }
121  @Override
122  public FieldValue getValue() {
123  return fv;
124  }
125  @Override
126  public FieldValue setValue(FieldValue 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()

FieldValue org.turro.contacts.FieldMap.get ( Object  key)

Definition at line 65 of file FieldMap.java.

65  {
66  for(FieldValue fv : contact.getFieldValues()) {
67  if(getKeyString(fv).equalsIgnoreCase(key.toString())) {
68  return fv;
69  }
70  }
71  return null;
72  }
Here is the call graph for this function:

◆ isEmpty()

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

Definition at line 45 of file FieldMap.java.

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

◆ keySet()

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

Definition at line 95 of file FieldMap.java.

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

◆ put()

FieldValue org.turro.contacts.FieldMap.put ( String  key,
FieldValue  value 
)

Definition at line 75 of file FieldMap.java.

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

◆ putAll()

void org.turro.contacts.FieldMap.putAll ( Map<? extends String, ? extends FieldValue m)

Definition at line 85 of file FieldMap.java.

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

◆ remove()

FieldValue org.turro.contacts.FieldMap.remove ( Object  key)

Definition at line 80 of file FieldMap.java.

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

◆ size()

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

Definition at line 40 of file FieldMap.java.

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

◆ values()

Collection<FieldValue> org.turro.contacts.FieldMap.values ( )

Definition at line 104 of file FieldMap.java.

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

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