Class PersonAdapter

  • All Implemented Interfaces:
    IPerson, java.io.Serializable

    public class PersonAdapter
    extends java.lang.Object
    implements IPerson
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      PersonAdapter​(java.lang.String userId, java.lang.String firstName, java.lang.String lastName)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getUserId()  
      java.lang.String getUserName()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PersonAdapter

        public PersonAdapter​(java.lang.String userId,
                             java.lang.String firstName,
                             java.lang.String lastName)
    • Method Detail

      • getUserId

        public java.lang.String getUserId()
        Specified by:
        getUserId in interface IPerson
        Returns:
        id of the user
      • getUserName

        public java.lang.String getUserName()
        Specified by:
        getUserName in interface IPerson
        Returns:
        first name and last name of the user if known, otherwise id of the user