Package org.jcsp.net.cns
Class ChannelNameKey
- java.lang.Object
-
- org.jcsp.net.cns.ChannelNameKey
-
- All Implemented Interfaces:
java.io.Serializable
public final class ChannelNameKey extends java.lang.Object implements java.io.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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ChannelNameKey(long val)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
Compares anotherObject
with thisChannelNameKey
.int
hashCode()
Returns anint
hash code for this object.
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
Compares anotherObject
with thisChannelNameKey
.- Overrides:
equals
in classjava.lang.Object
- Parameters:
o
- the otherObject
to compare with thisObject
.- Returns:
true
iffo
is a non-nullChannelNameKey
object which holds the same key as this object.
-
hashCode
public int hashCode()
Returns anint
hash code for this object.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- an
int
hash code.
-
-