Class SAEPrincipal

    • Constructor Detail

      • SAEPrincipal

        public SAEPrincipal​(String name)
    • Method Detail

      • getName

        public String getName()
        Returns the username for this SAEPrincipal.

        Specified by:
        getName in interface Principal
        Returns:
        the username for this SAEPrincipal
      • toString

        public String toString()
        Returns a string representation of this SAEPrincipal.

        Specified by:
        toString in interface Principal
        Overrides:
        toString in class Object
        Returns:
        a string representation of this SAEPrincipal.
      • equals

        public boolean equals​(Object o)
        Compares the specified Object with this SAEPrincipal for equality. Returns true if the given object is also a SAEPrincipal and the two SAEPrincipals have the same username.

        Specified by:
        equals in interface Principal
        Overrides:
        equals in class Object
        Parameters:
        o - Object to be compared for equality with this SAEPrincipal.
        Returns:
        true if the specified Object is equal equal to this SAEPrincipal.
      • hashCode

        public int hashCode()
        Returns a hash code for this SAEPrincipal.

        Specified by:
        hashCode in interface Principal
        Overrides:
        hashCode in class Object
        Returns:
        a hash code for this SAEPrincipal.