本文整理匯總了Java中org.marc.everest.datatypes.generic.SET.isEmpty方法的典型用法代碼示例。如果您正苦於以下問題:Java SET.isEmpty方法的具體用法?Java SET.isEmpty怎麽用?Java SET.isEmpty使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.marc.everest.datatypes.generic.SET
的用法示例。
在下文中一共展示了SET.isEmpty方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: setTelecoms
import org.marc.everest.datatypes.generic.SET; //導入方法依賴的package包/類
private void setTelecoms() {
SET<TEL> telecoms = new SET<TEL>();
EverestUtils.addTelecomPart(telecoms, demographic.getPhone(), TelecommunicationsAddressUse.Home, TelecomType.TELEPHONE);
EverestUtils.addTelecomPart(telecoms, demographic.getPhone2(), TelecommunicationsAddressUse.WorkPlace, TelecomType.TELEPHONE);
EverestUtils.addTelecomPart(telecoms, demographic.getEmail(), TelecommunicationsAddressUse.Home, TelecomType.EMAIL);
if(!telecoms.isEmpty()) {
this.telecoms = telecoms;
}
else {
this.telecoms = null;
}
}
示例2: setNames
import org.marc.everest.datatypes.generic.SET; //導入方法依賴的package包/類
private void setNames() {
SET<PN> names = new SET<PN>();
EverestUtils.addNamePart(names, demographic.getFirstName(), demographic.getLastName(), EntityNameUse.Legal);
if(!names.isEmpty()) {
this.names = names;
}
else {
this.names = null;
}
}
示例3: setTelecoms
import org.marc.everest.datatypes.generic.SET; //導入方法依賴的package包/類
private void setTelecoms() {
SET<TEL> telecoms = new SET<TEL>();
EverestUtils.addTelecomPart(telecoms, provider.getPhone(), TelecommunicationsAddressUse.Home, TelecomType.TELEPHONE);
EverestUtils.addTelecomPart(telecoms, provider.getWorkPhone(), TelecommunicationsAddressUse.WorkPlace, TelecomType.TELEPHONE);
EverestUtils.addTelecomPart(telecoms, provider.getEmail(), TelecommunicationsAddressUse.Home, TelecomType.EMAIL);
if(!telecoms.isEmpty()) {
this.telecoms = telecoms;
} else {
this.telecoms = null;
}
}
示例4: setPerson
import org.marc.everest.datatypes.generic.SET; //導入方法依賴的package包/類
private void setPerson() {
Person person = new Person();
SET<PN> names = new SET<PN>();
EverestUtils.addNamePart(names, provider.getFirstName(), provider.getLastName(), EntityNameUse.OfficialRecord);
if(names.isEmpty()) {
PN pn = new PN();
pn.setNullFlavor(NullFlavor.NoInformation);
names.add(pn);
}
person.setName(names);
this.person = person;
}