| 
J2ME RMI Optional Package | ||||||||
| 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(java.lang.Object obj)
Compares two UIDs for content equality. | 
 int | 
hashCode()
Returns a hashcode for the UID. | 
static UID | 
read(java.io.DataInput in)
Reads the UID from the input stream. | 
 java.lang.String | 
toString()
Returns the string representation of the UID. | 
 void | 
write(java.io.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.hashCode in class java.lang.ObjectHashtablepublic boolean equals(java.lang.Object obj)
UIDs for content equality.equals in class java.lang.Objectobj - the Object to compare withHashtablepublic java.lang.String toString()
UID.toString in class java.lang.Object
public void write(java.io.DataOutput out)
           throws java.io.IOException
UID to output stream, out.out - the output stream to which the UID is
 writtenjava.io.IOException - if writing the UID to the
 stream fails.
public static UID read(java.io.DataInput in)
                throws java.io.IOException
UID from the input stream.in - the input streamUIDjava.io.IOException - if uid could not be read
 (due to stream failure or malformed UID)
  | 
J2ME RMI Optional Package | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||