Class ChannelNameKey

java.lang.Object
org.jcsp.net.cns.ChannelNameKey
All Implemented Interfaces:
Serializable

public final class ChannelNameKey extends Object implements Serializable
Instances of this hold a key for a particular channel. ChannelNameKey objects are issued by the channel name server. They must be supplied to the channel name server along with any channel management requests (channel deregistration, relocation etc.). This class has no public constructor.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private int
     
    private final long
     
    private final long
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ChannelNameKey(long val)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Compares another Object with this ChannelNameKey.
    int
    Returns an int hash code for this object.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • hashCode

      private int hashCode
    • val

      private final long val
    • key

      private final long key
  • Constructor Details

    • ChannelNameKey

      ChannelNameKey(long val)
  • Method Details

    • equals

      public boolean equals(Object o)
      Compares another Object with this ChannelNameKey.
      Overrides:
      equals in class Object
      Parameters:
      o - the other Object to compare with this Object.
      Returns:
      true iff o is a non-null ChannelNameKey object which holds the same key as this object.
    • hashCode

      public int hashCode()
      Returns an int hash code for this object.
      Overrides:
      hashCode in class Object
      Returns:
      an int hash code.