nl.vpro.domain.PersonInterface Maven / Gradle / Ivy
The newest version!
package nl.vpro.domain;
public interface PersonInterface {
String getGivenName();
String getFamilyName();
String getGtaaUri();
/**
* @since 5.12
*/
default String getName() {
String givenName = getGivenName();
String familyName = getFamilyName();
return stringValue(givenName, familyName);
}
/**
* @since 5.11
*/
static String stringValue(String givenName, String familyName) {
if (familyName == null && givenName == null) {
return null;
}
return (familyName == null ? "" : familyName) + (givenName == null ? "": ", " + givenName);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy