19 package org.turro.contacts.name;
21 import java.util.Objects;
22 import org.turro.jpa.embeddables.ComplexName;
23 import org.turro.string.Strings;
31 private final String contactId, name, full, informal, formal;
33 private boolean selected;
35 public NameEntry(String contactId, String name, String full, String informal, String formal) {
36 this.contactId = contactId;
39 this.informal = informal;
68 this.selected = selected;
72 return Strings.isBlank(contactId) || Strings.isBlank(full);
75 public static NameEntry from(String contactId, String name,
boolean entity) {
78 if(!Objects.equals(cn.
getFull(), name) || !Strings.isBlank(cn.
getFormal()) ||
static NameEntry from(String contactId, String name, boolean entity)
NameEntry(String contactId, String name, String full, String informal, String formal)
void setSelected(boolean selected)
void guessFrom(String name, boolean entity)