|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.rmi.server.UID
public final class UID
Represents the unique identifier over time for the host which has generated it. It contains time (when created), counter (the number of the UID creation order) and virtual machine id components. The UID can also be constructed specifying a "well known" identifier in the for of short: this identifier defines the UID uniqueness alone.
Constructor Summary | |
---|---|
UID()
Create the new UID that would have the described features of the uniqueness. |
|
UID(short wellKnownId)
Create the new UID with the well known id (number). |
Method Summary | |
---|---|
boolean |
equals(Object other)
Compare this UID with another UID for equality (not equal to other types of objects). |
int |
hashCode()
Get the hashCode of this UID. |
static UID |
read(DataInput in)
|
String |
toString()
Get the string representation of this UID. |
void |
write(DataOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public UID()
public UID(short wellKnownId)
wellKnownId
- the well known UID.Method Detail |
---|
public int hashCode()
hashCode
in class Object
Object.equals(Object)
,
System.identityHashCode(Object)
public boolean equals(Object other)
equals
in class Object
other
- the Object to compare to
Object.hashCode()
public static UID read(DataInput in) throws IOException
IOException
public void write(DataOutput out) throws IOException
IOException
public String toString()
toString
in class Object
Object.getClass()
,
Object.hashCode()
,
Class.getName()
,
Integer.toHexString(int)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |