java.rmi.server
public final class UID extends Object implements Serializable
Constructor and Description |
---|
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).
|
Modifier and Type | Method and Description |
---|---|
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) |
public UID()
public UID(short wellKnownId)
wellKnownId
- the well known UID.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 toObject.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)