public class LongPersistentHandle extends java.lang.Object implements HGPersistentHandle
Constructor and Description |
---|
LongPersistentHandle(long v) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(HGPersistentHandle other) |
boolean |
equals(java.lang.Object obj) |
HGPersistentHandle |
getPersistent() |
int |
hashCode() |
byte[] |
toByteArray()
Return a
byte[] representation of the handle. |
java.lang.String |
toString() |
java.lang.String |
toStringValue() |
public byte[] toByteArray()
HGPersistentHandle
Return a byte[]
representation of the handle. Note that byte[]
representations of all handles will be of the same size. For example 4 for integer based handles,
or 16 for UUID based handles.
toByteArray
in interface HGPersistentHandle
public int compareTo(HGPersistentHandle other)
compareTo
in interface java.lang.Comparable<HGPersistentHandle>
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public HGPersistentHandle getPersistent()
getPersistent
in interface HGHandle
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringValue()