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

Public Member Functions

 ImporterEntry (String email, String name, String relatedTo, String position)
 
String getEmail ()
 
String getName ()
 
String getRelatedTo ()
 
String getPosition ()
 
void setPosition (String position)
 
boolean isDuplicated ()
 
RelationType getType ()
 
void setType (RelationType type)
 
Contact getContact ()
 
void setContact (Contact contact)
 
Contact getPossibleRelated ()
 
void setPossibleRelated (Contact possibleRelated)
 
String getFinalName ()
 
void rebuild ()
 
int hashCode ()
 
boolean equals (Object obj)
 

Static Public Member Functions

static ImporterEntry from (Map< String, String > values)
 

Detailed Description

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

Definition at line 37 of file ImporterEntry.java.

Constructor & Destructor Documentation

◆ ImporterEntry()

org.turro.contacts.importer.ImporterEntry.ImporterEntry ( String  email,
String  name,
String  relatedTo,
String  position 
)

Definition at line 45 of file ImporterEntry.java.

45  {
46  this.email = email;
47  this.name = name;
48  this.relatedTo = relatedTo;
49  this.position = position;
50  type = RelationType.REL_STAFF;
51  solve();
52  }
Here is the caller graph for this function:

Member Function Documentation

◆ equals()

boolean org.turro.contacts.importer.ImporterEntry.equals ( Object  obj)

Definition at line 165 of file ImporterEntry.java.

165  {
166  if (this == obj) {
167  return true;
168  }
169  if (obj == null) {
170  return false;
171  }
172  if (getClass() != obj.getClass()) {
173  return false;
174  }
175  final ImporterEntry other = (ImporterEntry) obj;
176  return Objects.equals(this.email, other.email);
177  }
ImporterEntry(String email, String name, String relatedTo, String position)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ from()

static ImporterEntry org.turro.contacts.importer.ImporterEntry.from ( Map< String, String >  values)
static

Definition at line 150 of file ImporterEntry.java.

150  {
151  return new ImporterEntry(values.get("email"), values.get("name"),
152  values.get("relatedTo"), values.get("position"));
153  }

◆ getContact()

Contact org.turro.contacts.importer.ImporterEntry.getContact ( )

Definition at line 86 of file ImporterEntry.java.

86  {
87  return contact;
88  }

◆ getEmail()

String org.turro.contacts.importer.ImporterEntry.getEmail ( )

Definition at line 54 of file ImporterEntry.java.

54  {
55  return email;
56  }

◆ getFinalName()

String org.turro.contacts.importer.ImporterEntry.getFinalName ( )

Definition at line 102 of file ImporterEntry.java.

102  {
103  return contact == null ? name : contact.getName();
104  }
Here is the call graph for this function:

◆ getName()

String org.turro.contacts.importer.ImporterEntry.getName ( )

Definition at line 58 of file ImporterEntry.java.

58  {
59  return name;
60  }

◆ getPosition()

String org.turro.contacts.importer.ImporterEntry.getPosition ( )

Definition at line 66 of file ImporterEntry.java.

66  {
67  return position;
68  }

◆ getPossibleRelated()

Contact org.turro.contacts.importer.ImporterEntry.getPossibleRelated ( )

Definition at line 94 of file ImporterEntry.java.

94  {
95  return possibleRelated;
96  }

◆ getRelatedTo()

String org.turro.contacts.importer.ImporterEntry.getRelatedTo ( )

Definition at line 62 of file ImporterEntry.java.

62  {
63  return relatedTo;
64  }

◆ getType()

RelationType org.turro.contacts.importer.ImporterEntry.getType ( )

Definition at line 78 of file ImporterEntry.java.

78  {
79  return type;
80  }

◆ hashCode()

int org.turro.contacts.importer.ImporterEntry.hashCode ( )

Definition at line 158 of file ImporterEntry.java.

158  {
159  int hash = 5;
160  hash = 53 * hash + Objects.hashCode(this.email);
161  return hash;
162  }

◆ isDuplicated()

boolean org.turro.contacts.importer.ImporterEntry.isDuplicated ( )

Definition at line 74 of file ImporterEntry.java.

74  {
75  return duplicated;
76  }

◆ rebuild()

void org.turro.contacts.importer.ImporterEntry.rebuild ( )

Definition at line 108 of file ImporterEntry.java.

108  {
109  solve();
110  }

◆ setContact()

void org.turro.contacts.importer.ImporterEntry.setContact ( Contact  contact)

Definition at line 90 of file ImporterEntry.java.

90  {
91  this.contact = contact;
92  }

◆ setPosition()

void org.turro.contacts.importer.ImporterEntry.setPosition ( String  position)

Definition at line 70 of file ImporterEntry.java.

70  {
71  this.position = position;
72  }

◆ setPossibleRelated()

void org.turro.contacts.importer.ImporterEntry.setPossibleRelated ( Contact  possibleRelated)

Definition at line 98 of file ImporterEntry.java.

98  {
99  this.possibleRelated = possibleRelated;
100  }

◆ setType()

void org.turro.contacts.importer.ImporterEntry.setType ( RelationType  type)

Definition at line 82 of file ImporterEntry.java.

82  {
83  this.type = type;
84  }

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