|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
| 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)
num - well known ID number| 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()
public void write(DataOutput out) throws IOException
UID to output stream, out.out - the output stream to which the UID is
writtenIOException - if writing the UID to the
stream fails.public static UID read(DataInput in) throws IOException
UID from the input stream.in - the input streamUIDIOException - if uid could not be read
(due to stream failure or malformed UID)
|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.