public class EntryID extends Object implements Comparable<EntryID>
| Constructor and Description |
|---|
EntryID(com.sleepycat.je.DatabaseEntry databaseEntry)
Create a new entry ID object from a value in database format.
|
EntryID(long id)
Create a new entry ID object from a given long value.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(EntryID that)
Compares this object with the specified object for order.
|
boolean |
equals(Object that)
Indicates whether some other object is "equal to" this one.
|
com.sleepycat.je.DatabaseEntry |
getDatabaseEntry()
Get the value of the ID in database format.
|
int |
hashCode()
Returns a hash code value for the object.
|
long |
longValue()
Get the value of the entry ID as a long.
|
String |
toString()
Get a string representation of this object.
|
public EntryID(long id)
id - The long value of the ID.public EntryID(com.sleepycat.je.DatabaseEntry databaseEntry)
databaseEntry - The database value of the ID.public long longValue()
public com.sleepycat.je.DatabaseEntry getDatabaseEntry()
public int compareTo(EntryID that) throws ClassCastException
compareTo in interface Comparable<EntryID>that - the Object to be compared.ClassCastException - if the specified object's type prevents it
from being compared to this Object.public boolean equals(Object that)
equals in class Objectthat - the reference object with which to compare.true if this object is the same as the obj
argument; false otherwise.hashCode(),
Hashtablepublic int hashCode()
java.util.Hashtable.hashCode in class ObjectObject.equals(java.lang.Object),
HashtableCopyright © 2010-2015 ForgeRock AS. All Rights Reserved.