Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.
Copyright © 2006 Sun Microsystems, Inc. All rights reserved.
java.rmi.dgc
Class VMID
java.lang.Object
|
+--java.rmi.dgc.VMID
- All Implemented Interfaces:
- java.io.Serializable
- public final class VMID
- extends java.lang.Object
- implements java.io.Serializable
A VMID is an identifier that is unique across all virtual machines.
VMIDs are used by the distributed garbage collector to identify
client virtual machines.
- 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 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
- Following 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
- Following 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
- Following copied from class:
java.lang.Object
- Returns:
- a string representation of the object.
Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.
For more information, please consult the JSR 66 specification.