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 GlobalID
object is the parent
AbstractID
to all top level DomainID
objects.
See
for a fully explanation of
this class.
AbstractID
Modifier and Type | Field and Description |
---|---|
static GlobalID |
instance
A static instance of
GlobalID . |
Constructor and Description |
---|
GlobalID() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Compares another object with this
GlobalID object. |
AbstractID |
getParentID()
Returns
null as there is no parent
AbstractID of instances of this class. |
int |
hashCode()
Returns an
int hash code for this object. |
String |
toString()
Returns a human readable string representation of a
GlobalID . |
public static final GlobalID instance
A static instance of GlobalID
.
Instead of creating GlobalID
objects, it
is better to use this instance as only once instance is
ever required.
public AbstractID getParentID()
Returns null
as there is no parent
AbstractID
of instances of this class.
getParentID
in class AbstractID
null
.public boolean equals(Object o)
Compares another object with this GlobalID
object.
public int hashCode()
Returns an int
hash code for this object.
Copyright © 1996–2017. All rights reserved.