|
static NameEntry | from (String contactId, String name, boolean entity) |
|
◆ 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.
36 this.contactId = contactId;
39 this.informal = informal;
◆ 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.
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());
NameEntry(String contactId, String name, String full, String informal, String formal)
◆ getContactId()
String org.turro.contacts.name.NameEntry.getContactId |
( |
| ) |
|
◆ getFormal()
String org.turro.contacts.name.NameEntry.getFormal |
( |
| ) |
|
◆ getFull()
String org.turro.contacts.name.NameEntry.getFull |
( |
| ) |
|
◆ getInformal()
String org.turro.contacts.name.NameEntry.getInformal |
( |
| ) |
|
◆ getName()
String org.turro.contacts.name.NameEntry.getName |
( |
| ) |
|
◆ isEmpty()
boolean org.turro.contacts.name.NameEntry.isEmpty |
( |
| ) |
|
Definition at line 71 of file name/NameEntry.java.
72 return Strings.isBlank(contactId) || Strings.isBlank(full);
◆ isSelected()
boolean org.turro.contacts.name.NameEntry.isSelected |
( |
| ) |
|
◆ setSelected()
void org.turro.contacts.name.NameEntry.setSelected |
( |
boolean |
selected | ) |
|
The documentation for this class was generated from the following file: