|
Java Platform 1.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--java.rmi.server.UID
Abstraction for creating identifiers that are unique with respect to the the host on which it is generated.
| Constructor Summary | |
UID()
Creates a pure identifier that is unique with respect to the host on which it is generated. |
|
UID(short num)
Creates a "well-known" ID. |
|
| Method Summary | |
boolean |
equals(Object obj)
Compares two UIDs for content equality. |
int |
hashCode()
Returns a hashcode for the UID. |
static UID |
read(DataInput in)
Reads the UID from the input stream. |
String |
toString()
Returns the string representation of the UID. |
void |
write(DataOutput out)
Write the UID to output stream, out. |
| Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public UID()
public UID(short num)
| Method Detail |
public int hashCode()
UID. Two UIDs
will have the same hashcode if they are equal with respect to their
content.Hashtablepublic boolean equals(Object obj)
UIDs for content equality.obj - the Object to compare withHashtablepublic String toString()
UID.
public void write(DataOutput out)
throws IOException
UID to output stream, out.out - the output stream to which the UID is
writtenUID to the
stream fails.
public static UID read(DataInput in)
throws IOException
UID from the input stream.in - the input streamUIDUID)
|
Java Platform 1.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||