Package jsl.utilities

Class Identity

    • Constructor Summary

      Constructors 
      Constructor Description
      Identity()
      Assumes the name is null.
      Identity​(java.lang.String name)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getId()
      Returns the id for this object
      java.lang.String getName()
      Gets the name.
      void setName​(java.lang.String str)
      Sets the name.
      • Methods inherited from class java.lang.Object

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

      • Identity

        public Identity()
        Assumes the name is null.
      • Identity

        public Identity​(java.lang.String name)
        Parameters:
        name - the name to be used for the identity, can be null
    • Method Detail

      • getName

        public final java.lang.String getName()
        Gets the name.
        Specified by:
        getName in interface GetNameIfc
        Returns:
        The name of object.
      • getId

        public final int getId()
        Returns the id for this object
        Specified by:
        getId in interface IdentityIfc
        Returns:
        the id for this object
      • setName

        public final void setName​(java.lang.String str)
        Sets the name. If null, a name is constructed based on the simple class name and the id of the object
        Parameters:
        str - The name as a string.