java.rmi.dgc
Class VMID
java.lang.Object
|
+--java.rmi.dgc.VMID
- public final class VMID
- extends java.lang.Object
- implements java.io.Serializable
A VMID is a identifier that is unique across all Java virtual
machines. VMIDs are used by the distributed garbage collector
to identify client VMs.
- See Also:
- Serialized Form
Constructor Summary |
VMID()
Create a new VMID. |
Method Summary |
boolean |
equals(java.lang.Object obj)
Compare this VMID to another, and return true if they are the
same identifier. |
int |
hashCode()
Compute hash code for this VMID. |
java.lang.String |
toString()
Return string representation of this VMID. |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
VMID
public VMID()
- Create a new VMID. Each new VMID returned from this constructor
is unique for all Java virtual machines under the following
conditions: a) the conditions for uniqueness for objects of
the class
java.rmi.server.UID
are satisfied, and b) an
address can be obtained for this host that is unique and constant
for the lifetime of this object.
hashCode
public int hashCode()
- Compute hash code for this VMID.
- Overrides:
- hashCode in class java.lang.Object
- Tags copied from class: java.lang.Object
- Returns:
- a hash code value for this object.
- See Also:
Object.equals(java.lang.Object)
,
Hashtable
equals
public boolean equals(java.lang.Object obj)
- Compare this VMID to another, and return true if they are the
same identifier.
- Overrides:
- equals in class java.lang.Object
- Tags copied from class: java.lang.Object
- Parameters:
obj
- the reference object with which to compare.- Returns:
true
if this object is the same as the obj
argument; false
otherwise.- See Also:
java.lang.Boolean#hashCode()
,
Hashtable
toString
public java.lang.String toString()
- Return string representation of this VMID.
- Overrides:
- toString in class java.lang.Object
- Tags copied from class: java.lang.Object
- Returns:
- a string representation of the object.
Java is a trademark or registred trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road,
Palo, Alto, California, 94303, U.S.A All Rights Reserved. < /font >