Class Person

  • All Implemented Interfaces:
    com.anaptecs.jeaf.core.api.ServiceObject, com.anaptecs.jeaf.xfun.api.common.Identifiable<com.anaptecs.jeaf.core.api.ServiceObjectID>, java.io.Serializable

    @Valid
    public class Person
    extends PersonBase
    See Also:
    Serialized Form
    • Constructor Detail

      • Person

        protected Person()
        Default constructor is only intended to be used for deserialization by tools like Jackson for JSON. For "normal" object creation builder should be used instead.
    • Method Detail

      • builder

        public static Person.Builder builder()
        Method returns a new builder.
        Returns:
        Person.Builder New builder that can be used to create new Person objects.
      • builder

        public static Person.Builder builder​(Person pObject)
        Method creates a new builder and initialize it with the data from the passed object.
        Parameters:
        pObject - Object that should be used to initialize the builder. The parameter may be null.
        Returns:
        Person.Builder New builder that can be used to create new Person objects. The method never returns null.
      • builder

        public static Person.Builder builder​(java.lang.String pSurname,
                                             java.lang.String pFirstName)
        Method creates a new builder and initializes it with the passed attributes.
      • getDisplayName

        public java.lang.String getDisplayName()
        Specified by:
        getDisplayName in class PersonBase
        Returns:
        String