|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.backends.jeb.EntryID
public class EntryID
An integer identifier assigned to each entry in the JE backend. An entry ID is implemented by this class as a long. There are static methods to assign monotonically increasing entry IDs, starting from 1.
Constructor Summary | |
---|---|
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. |
|
EntryID(java.lang.Long id)
Create a new entry ID object from a given Long value. |
Method Summary | |
---|---|
int |
compareTo(EntryID that)
Compares this object with the specified object for order. |
boolean |
equals(java.lang.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. |
java.lang.String |
toString()
Get a string representation of this object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EntryID(long id)
id
- The long value of the ID.public EntryID(java.lang.Long id)
id
- the Long value of the ID.public EntryID(com.sleepycat.je.DatabaseEntry databaseEntry)
databaseEntry
- The database value of the ID.Method Detail |
---|
public long longValue()
public com.sleepycat.je.DatabaseEntry getDatabaseEntry()
public int compareTo(EntryID that) throws java.lang.ClassCastException
compareTo
in interface java.lang.Comparable<EntryID>
that
- the Object to be compared.
java.lang.ClassCastException
- if the specified object's type prevents it
from being compared to this Object.public boolean equals(java.lang.Object that)
equals
in class java.lang.Object
that
- the reference object with which to compare.
true
if this object is the same as the obj
argument; false
otherwise.hashCode()
,
Hashtable
public int hashCode()
java.util.Hashtable
.
hashCode
in class java.lang.Object
Object.equals(java.lang.Object)
,
Hashtable
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |