public class IntPersistentHandle extends java.lang.Object implements HGPersistentHandle
Constructor and Description |
---|
IntPersistentHandle(int value) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(HGPersistentHandle o) |
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 o)
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 java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringValue()
public HGPersistentHandle getPersistent()
getPersistent
in interface HGHandle