|
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 UID s 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 UID
s
will have the same hashcode if they are equal with respect to their
content.Hashtable
public boolean equals(Object obj)
UID
s for content equality.obj
- the Object to compare withHashtable
public 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 streamUID
UID
)
|
Java Platform 1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |