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

Public Member Functions

boolean add (Contact e)
 
boolean addAll (Collection<? extends Contact > collection)
 
boolean exists (Contact e)
 

Detailed Description

Member Function Documentation

◆ add()

boolean org.turro.contacts.util.ContactList.add ( Contact  e)

Definition at line 31 of file BrightSide/contacts/src/main/java/org/turro/contacts/util/ContactList.java.

31  {
32  if(e == null) return false;
33  if(exists(e)) {
34  return false;
35  }
36  return super.add(e);
37  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ addAll()

boolean org.turro.contacts.util.ContactList.addAll ( Collection<? extends Contact collection)

Definition at line 40 of file BrightSide/contacts/src/main/java/org/turro/contacts/util/ContactList.java.

40  {
41  for(Contact c : collection) {
42  add(c);
43  }
44  return true;
45  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ exists()

boolean org.turro.contacts.util.ContactList.exists ( Contact  e)

Definition at line 47 of file BrightSide/contacts/src/main/java/org/turro/contacts/util/ContactList.java.

47  {
48  if(e == null) return false;
49  for(Contact c : this) {
50  if(c.getId().equals(e.getId())) {
51  return true;
52  }
53  }
54  return false;
55  }
Here is the call graph for this function:
Here is the caller graph for this function:

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