@NotStorableClass public class DataRecordIdentifier extends Object implements Comparable<DataRecordIdentifier>, Serializable
Modifier and Type | Field and Description |
---|---|
static DataRecordIdentifier |
LAST |
long |
value |
static DataRecordIdentifier |
ZERO |
Constructor and Description |
---|
DataRecordIdentifier()
create the first data record identifier: #0
|
DataRecordIdentifier(DataRecordIdentifier dataRecordIdentifier)
create the next value of a data record identifier
|
DataRecordIdentifier(IDataRecordKey dataRecordKey) |
DataRecordIdentifier(int value)
create a data record identifier with initial small value ( the firsts
data recording )
|
DataRecordIdentifier(long long1)
create setting value
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(DataRecordIdentifier dataRecordIdentifier) |
boolean |
equals(Object obj) |
int |
getIndex() |
Object |
getKey() |
byte[] |
getKeyData() |
int |
getKeyDataSize() |
int |
hashCode() |
void |
setIndex(int index) |
String |
toString() |
public static final DataRecordIdentifier ZERO
public static final DataRecordIdentifier LAST
public final long value
public DataRecordIdentifier()
public DataRecordIdentifier(int value)
value
- initiale valuepublic DataRecordIdentifier(long long1)
long1
- long2
- public DataRecordIdentifier(DataRecordIdentifier dataRecordIdentifier)
dataRecordIdentifier
- reference data identifierpublic DataRecordIdentifier(IDataRecordKey dataRecordKey)
public int getKeyDataSize()
public byte[] getKeyData()
public Object getKey() throws HeapException
HeapException
public int getIndex()
public void setIndex(int index)
public int compareTo(DataRecordIdentifier dataRecordIdentifier)
compareTo
in interface Comparable<DataRecordIdentifier>
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.