|
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 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)
num
- well known ID numberMethod Detail |
public int hashCode()
UID
. Two UID
s
will have the same hashcode if they are equal with respect to their
content.hashCode
in class Object
Hashtable
public boolean equals(Object obj)
UID
s for content equality.equals
in class Object
obj
- the Object to compare withHashtable
public String toString()
UID
.toString
in class Object
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 streamUID
IOException
- 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 Oracle and/or its affiliates, in the US and other countries.
Copyright © 1995, 2010 Oracle and/or its affiliates. All rights reserved.