public final class ObjectID extends java.lang.Object implements ISerializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ABBREVIATION
The abbreviation used for this class during serialization.
|
Constructor and Description |
---|
ObjectID()
Generates a new uninitialized object id.
|
ObjectID(long value)
Generates a new well known object id.
|
Modifier and Type | Method and Description |
---|---|
static ObjectID |
create()
Creates a new globally unique object id.
|
boolean |
equals(java.lang.Object object)
Compares the specified object with this id for equality.
|
int |
hashCode()
Returns the hash code of the id.
|
boolean |
isKnown()
Determines whether this object id represents a well known object id.
|
void |
readObject(IObjectInput input)
Reads the ObjectID from a stream.
|
java.lang.String |
toString()
Returns a string representation of this
UID . |
void |
writeObject(IObjectOutput stream)
Writes the ObjectID to the given stream.
|
public static final java.lang.String ABBREVIATION
public ObjectID()
public ObjectID(long value)
value
- The id of the well known object id.public static ObjectID create()
public int hashCode()
hashCode
in class java.lang.Object
public boolean isKnown()
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
object
- The object to compare to.public java.lang.String toString()
UID
.toString
in class java.lang.Object
UID
public void writeObject(IObjectOutput stream) throws java.io.IOException
writeObject
in interface ISerializable
stream
- The stream to write to.java.io.IOException
- If writing to the stream caused an exception.public void readObject(IObjectInput input) throws java.io.IOException
readObject
in interface ISerializable
input
- The stream to read from.java.io.IOException
- Thrown if reading caused this exception.