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

Public Member Functions

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

Detailed Description

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

Definition at line 33 of file ConnectorMap.java.

Constructor & Destructor Documentation

◆ ConnectorMap()

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

Definition at line 37 of file ConnectorMap.java.

37  {
38  this.contact = contact;
39  }

Member Function Documentation

◆ clear()

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

Definition at line 101 of file ConnectorMap.java.

101  {
102  throw new UnsupportedOperationException("Not supported yet.");
103  }

◆ containsKey()

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

Definition at line 61 of file ConnectorMap.java.

61  {
62  for(Connector c : contact.getConnectors()) {
63  if(c.getDescription().equalsIgnoreCase(key.toString())) {
64  return true;
65  }
66  }
67  return false;
68  }
Set< Connector > getConnectors()
Definition: Contact.java:367
Here is the call graph for this function:

◆ containsValue()

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

Definition at line 71 of file ConnectorMap.java.

71  {
72  throw new UnsupportedOperationException("Not supported yet.");
73  }

◆ entrySet()

Set<Entry<String, Connector> > org.turro.contacts.ConnectorMap.entrySet ( )

Definition at line 126 of file ConnectorMap.java.

126  {
127  HashSet<Entry<String, Connector>> set = new HashSet();
128  for(final Connector c : contact.getConnectors()) {
129  set.add(new Entry<String, Connector>() {
130  @Override
131  public String getKey() {
132  return c.getDescription();
133  }
134  @Override
135  public Connector getValue() {
136  return c;
137  }
138  @Override
139  public Connector setValue(Connector value) {
140  throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
141  }
142  });
143  }
144  return set;
145  }
Here is the call graph for this function:

◆ get()

Connector org.turro.contacts.ConnectorMap.get ( Object  key)

Definition at line 76 of file ConnectorMap.java.

76  {
77  for(Connector c : contact.getConnectors()) {
78  if(!c.isEmpty() && c.getDescription().equalsIgnoreCase(key.toString())) {
79  return c;
80  }
81  }
82  return null;
83  }
Here is the call graph for this function:

◆ getByType()

Connector org.turro.contacts.ConnectorMap.getByType ( String  type)

Definition at line 41 of file ConnectorMap.java.

41  {
42  for(final Connector c : contact.getConnectors()) {
43  if(type.equals(TypeByValues.getType(c.getDescription()))) {
44  return c;
45  }
46  }
47  return null;
48  }
Here is the call graph for this function:

◆ isEmpty()

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

Definition at line 56 of file ConnectorMap.java.

56  {
57  return contact.getConnectors().isEmpty();
58  }
Here is the call graph for this function:

◆ keySet()

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

Definition at line 106 of file ConnectorMap.java.

106  {
107  Set<String> set = new HashSet<>();
108  for(Connector c : contact.getConnectors()) {
109  if(!c.isEmpty()) {
110  set.add(c.getDescription());
111  }
112  }
113  return set;
114  }
Here is the call graph for this function:

◆ put()

Connector org.turro.contacts.ConnectorMap.put ( String  key,
Connector  value 
)

Definition at line 86 of file ConnectorMap.java.

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

◆ putAll()

void org.turro.contacts.ConnectorMap.putAll ( Map<? extends String, ? extends Connector m)

Definition at line 96 of file ConnectorMap.java.

96  {
97  throw new UnsupportedOperationException("Not supported yet.");
98  }

◆ remove()

Connector org.turro.contacts.ConnectorMap.remove ( Object  key)

Definition at line 91 of file ConnectorMap.java.

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

◆ size()

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

Definition at line 51 of file ConnectorMap.java.

51  {
52  return contact.getConnectors().size();
53  }
Here is the call graph for this function:

◆ values()

Collection<Connector> org.turro.contacts.ConnectorMap.values ( )

Definition at line 117 of file ConnectorMap.java.

117  {
118  Collection<Connector> list = new ArrayList<>();
119  for(Connector c : contact.getConnectors()) {
120  list.add(c);
121  }
122  return list;
123  }
Here is the call graph for this function:

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