org.sourceforge.jemm.types
Class ID
java.lang.Object
org.sourceforge.jemm.types.ID
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- TrackedID
public class ID
- extends java.lang.Object
- implements java.io.Serializable
An ID used used to track an object.
The ID is unique across all virtual machines
- Author:
- Rory Graves
- See Also:
- Serialized Form
Field Summary |
protected long |
idValue
|
Constructor Summary |
ID(long idValue)
Creates an ID using the passed in value. |
Method Summary |
boolean |
equals(java.lang.Object obj)
|
long |
getIDValue()
Retrieves the internal id representation for this ID |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
idValue
protected final long idValue
ID
public ID(long idValue)
- Creates an ID using the passed in value.
- Parameters:
idValue
- The unique internal ID, uniqueness not checked in this class
getIDValue
public long getIDValue()
- Retrieves the internal id representation for this ID
- Returns:
- The internal id representation
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2009. All Rights Reserved.