Package org.jcsp.net
Class GlobalID
- java.lang.Object
-
- org.jcsp.net.AbstractID
-
- org.jcsp.net.GlobalID
-
- All Implemented Interfaces:
Serializable
public final class GlobalID extends AbstractID implements 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
GlobalIDobject is the parentAbstractIDto all top levelDomainIDobjects.See
for a fully explanation of this class.AbstractID- Author:
- Quickstone Technologies Limited
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GlobalID()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Compares another object with thisGlobalIDobject.AbstractIDgetParentID()Returnsnullas there is no parentAbstractIDof instances of this class.inthashCode()Returns aninthash code for this object.StringtoString()Returns a human readable string representation of aGlobalID.
-
-
-
Field Detail
-
instance
public static final GlobalID instance
A static instance of
GlobalID. Instead of creatingGlobalIDobjects, it is better to use this instance as only once instance is ever required.
-
-
Method Detail
-
getParentID
public AbstractID getParentID()
Returns
nullas there is no parentAbstractIDof instances of this class.- Specified by:
getParentIDin classAbstractID- Returns:
null.
-
equals
public boolean equals(Object o)
Compares another object with this
GlobalIDobject.
-
hashCode
public int hashCode()
Returns an
inthash code for this object.
-
-