Package org.jcsp.net
Class GlobalID
java.lang.Object
org.jcsp.net.AbstractID
org.jcsp.net.GlobalID
- All Implemented Interfaces:
Serializable
A Class whose instances represent the global domain. There is only ever a need to have one instance of this class per JVM so a static instance is supplied.
The GlobalID
object is the parent
AbstractID
to all top level DomainID
objects.
See
for a fully explanation of
this class.
AbstractID
- Author:
- Quickstone Technologies Limited
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
instance
A static instance of
GlobalID
. Instead of creatingGlobalID
objects, it is better to use this instance as only once instance is ever required.
-
-
Constructor Details
-
GlobalID
public GlobalID()
-
-
Method Details
-
getParentID
Returns
null
as there is no parentAbstractID
of instances of this class.- Specified by:
getParentID
in classAbstractID
- Returns:
null
.
-
equals
Compares another object with this
GlobalID
object. -
hashCode
public int hashCode()Returns an
int
hash code for this object. -
toString
Returns a human readable string representation of a
GlobalID
.
-