All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nl.vpro.domain.PersonInterface Maven / Gradle / Ivy

Go to download

Several domains like 'media', pages' and 'subtitles' in the POMS system share some common properties which are collected here

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