本文整理汇总了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;
}