public class DeltaEntryImpl extends Object implements DeltaEntry, Cloneable, Serializable, XMLSerializable
Defines a byte offset value along an incrementing timeline as part of a delta entry array in an index table segment.
| Modifier and Type | Field and Description |
|---|---|
static String |
DELTAENTRY_TAG |
APPLY_TEMPORAL_REORDERING, NO_TEMPORAL_REORDERING, POSTABLEINDEX_DEFAULT, SLICE_DEFAULT| Constructor and Description |
|---|
DeltaEntryImpl() |
DeltaEntryImpl(byte posTableIndex,
byte slice,
int elementDelta) |
DeltaEntryImpl(int elementDelta) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendXMLChildren(Node parent)
Append extra child elements to the given parent node to serialize the value of an object
to an XML fragment.
|
DeltaEntry |
clone()
Create a cloned copy of this DeltaEntryImpl.
|
boolean |
equals(Object o) |
String |
getComment()
Include a comment when serializing a value to XML.
|
int |
getElementDelta()
Create a cloned copy of this DeltaEntryImpl.
|
byte |
getPosTableIndex()
Create a cloned copy of this DeltaEntryImpl.
|
byte |
getSlice()
Create a cloned copy of this DeltaEntryImpl.
|
int |
hashCode() |
static DeltaEntry[] |
makeDeltaEntryArray(int[] elementDeltas) |
static DeltaEntry |
parseFactory(String deltaEntryString) |
void |
setElementDelta(int elementDelta)
Create a cloned copy of this DeltaEntryImpl.
|
void |
setPosTableIndex(byte posTableIndex)
Create a cloned copy of this DeltaEntryImpl.
|
void |
setSlice(byte slice)
Create a cloned copy of this DeltaEntryImpl.
|
String |
toString() |
public static final String DELTAENTRY_TAG
public DeltaEntryImpl()
public DeltaEntryImpl(@UInt32 int elementDelta) throws IllegalArgumentException
IllegalArgumentExceptionpublic DeltaEntryImpl(@Int8 byte posTableIndex, @UInt8 byte slice, @UInt32 int elementDelta) throws IllegalArgumentException
IllegalArgumentExceptionpublic static final DeltaEntry[] makeDeltaEntryArray(@UInt32Array int[] elementDeltas) throws NullPointerException, IllegalArgumentException
@Int8 public byte getPosTableIndex()
Create a cloned copy of this DeltaEntryImpl.
getPosTableIndex in interface DeltaEntryDeltaEntry.POSTABLEINDEX_DEFAULT,
DeltaEntry.APPLY_TEMPORAL_REORDERING,
DeltaEntry.NO_TEMPORAL_REORDERING@UInt8 public void setPosTableIndex(@UInt8 byte posTableIndex) throws IllegalArgumentException
Create a cloned copy of this DeltaEntryImpl.
setPosTableIndex in interface DeltaEntryposTableIndex - If and how the element is subject to temporal reordering.IllegalArgumentException - The position table index cannot be less than -1.DeltaEntry.POSTABLEINDEX_DEFAULT,
DeltaEntry.APPLY_TEMPORAL_REORDERING,
DeltaEntry.NO_TEMPORAL_REORDERING@UInt8 public byte getSlice()
Create a cloned copy of this DeltaEntryImpl.
getSlice in interface DeltaEntryDeltaEntry.SLICE_DEFAULT,
IndexEntry.getSliceOffset()public void setSlice(@UInt8 byte slice) throws IllegalArgumentException
Create a cloned copy of this DeltaEntryImpl.
setSlice in interface DeltaEntryslice - Slice number for the slice containing this delta entry.IllegalArgumentException - A slice number cannot be negative.DeltaEntry.SLICE_DEFAULT,
IndexEntry.setSliceOffset(int[])@UInt32 public int getElementDelta()
Create a cloned copy of this DeltaEntryImpl.
getElementDelta in interface DeltaEntryDeltaEntry.getSlice()public void setElementDelta(@UInt32 int elementDelta) throws IllegalArgumentException
Create a cloned copy of this DeltaEntryImpl.
setElementDelta in interface DeltaEntryelementDelta - Offset measured in bytes from the start of the start of the indexed element and the start of the
current slice.IllegalArgumentException - Cannot set the element delta to a negative value.DeltaEntry.getSlice()public DeltaEntry clone()
Create a cloned copy of this DeltaEntryImpl.
clone in interface DeltaEntryclone in class Objectpublic void appendXMLChildren(Node parent)
XMLSerializableAppend extra child elements to the given parent node to serialize the value of an object
to an XML fragment. Methods of the XMLBuilder class are provided to help with this
process.
appendXMLChildren in interface XMLSerializableparent - XML parent element to append child nodes to.public static final DeltaEntry parseFactory(String deltaEntryString) throws NullPointerException, ParseException
NullPointerExceptionParseExceptionpublic String getComment()
XMLSerializableInclude a comment when serializing a value to XML. The comment will be inserted as the first child node of the element representing the class.
getComment in interface XMLSerializable(c)2007-2016 Richard Cartwright, all rights reserved. Licensed under Apache 2 license and subject to the AMWA IPR policy.