Class CNS.NameAndLevel

  • Enclosing class:
    CNS

    static class CNS.NameAndLevel
    extends java.lang.Object
    A data structure for holding a channel name and access level. This can be used as a key in a Hashtable.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)
      Compares this object with another object.
      int hashCode()
      Returns a hash code for this object.
      java.lang.String toString()
      Returns a human readable String representation of this NameAccessLevel object.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • name

        private java.lang.String name
    • Constructor Detail

      • NameAndLevel

        NameAndLevel​(java.lang.String name,
                     NameAccessLevel nameAccessLevel)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Compares this object with another object.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        o - An object to compare with this object.
        Returns:
        true iff o is a non-null NameAndLevel object which represents the same name and level as this object.
      • hashCode

        public int hashCode()
        Returns a hash code for this object.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        an int hash code for this object.
      • toString

        public java.lang.String toString()
        Returns a human readable String representation of this NameAccessLevel object.
        Overrides:
        toString in class java.lang.Object
        Returns:
        the human readable string as a String object.