Class CNS.NameAndLevel

java.lang.Object
org.jcsp.net.cns.CNS.NameAndLevel
Enclosing class:
CNS

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

  • Constructor Details

  • Method Details

    • equals

      public boolean equals(Object o)
      Compares this object with another object.
      Overrides:
      equals in class 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 Object
      Returns:
      an int hash code for this object.
    • toString

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