BrightSide Workbench Full Report + Source Code
org.turro.contacts.name.NameEntry Class Reference

Public Member Functions

 NameEntry (String contactId, String name, String full, String informal, String formal)
 
String getContactId ()
 
String getName ()
 
String getFull ()
 
String getInformal ()
 
String getFormal ()
 
boolean isSelected ()
 
void setSelected (boolean selected)
 
boolean isEmpty ()
 

Static Public Member Functions

static NameEntry from (String contactId, String name, boolean entity)
 

Detailed Description

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

Definition at line 29 of file name/NameEntry.java.

Constructor & Destructor Documentation

◆ NameEntry()

org.turro.contacts.name.NameEntry.NameEntry ( String  contactId,
String  name,
String  full,
String  informal,
String  formal 
)

Definition at line 35 of file name/NameEntry.java.

35  {
36  this.contactId = contactId;
37  this.name = name;
38  this.full = full;
39  this.informal = informal;
40  this.formal = formal;
41  }
Here is the caller graph for this function:

Member Function Documentation

◆ from()

static NameEntry org.turro.contacts.name.NameEntry.from ( String  contactId,
String  name,
boolean  entity 
)
static

Definition at line 75 of file name/NameEntry.java.

75  {
76  ComplexName cn = new ComplexName();
77  cn.guessFrom(name, entity);
78  if(!Objects.equals(cn.getFull(), name) || !Strings.isBlank(cn.getFormal()) ||
79  !Strings.isBlank(cn.getInformal())) {
80  return new NameEntry(contactId, name, cn.getFull(), cn.getInformal(), cn.getFormal());
81  }
82  return EMPTY;
83  }
NameEntry(String contactId, String name, String full, String informal, String formal)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getContactId()

String org.turro.contacts.name.NameEntry.getContactId ( )

Definition at line 43 of file name/NameEntry.java.

43  {
44  return contactId;
45  }

◆ getFormal()

String org.turro.contacts.name.NameEntry.getFormal ( )

Definition at line 59 of file name/NameEntry.java.

59  {
60  return formal;
61  }

◆ getFull()

String org.turro.contacts.name.NameEntry.getFull ( )

Definition at line 51 of file name/NameEntry.java.

51  {
52  return full;
53  }

◆ getInformal()

String org.turro.contacts.name.NameEntry.getInformal ( )

Definition at line 55 of file name/NameEntry.java.

55  {
56  return informal;
57  }

◆ getName()

String org.turro.contacts.name.NameEntry.getName ( )

Definition at line 47 of file name/NameEntry.java.

47  {
48  return name;
49  }

◆ isEmpty()

boolean org.turro.contacts.name.NameEntry.isEmpty ( )

Definition at line 71 of file name/NameEntry.java.

71  {
72  return Strings.isBlank(contactId) || Strings.isBlank(full);
73  }

◆ isSelected()

boolean org.turro.contacts.name.NameEntry.isSelected ( )

Definition at line 63 of file name/NameEntry.java.

63  {
64  return selected;
65  }

◆ setSelected()

void org.turro.contacts.name.NameEntry.setSelected ( boolean  selected)

Definition at line 67 of file name/NameEntry.java.

67  {
68  this.selected = selected;
69  }

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