public class ObjectSegment<E> extends BaseSegment
FORMAT_ID_BinaryValueSegment, FORMAT_ID_BooleanValueSegment, FORMAT_ID_DoubleValueSegment, FORMAT_ID_FloatValueSegment, FORMAT_ID_GenericValueSegment, FORMAT_ID_IntValueSegment, FORMAT_ID_LongValueSegment, FORMAT_ID_OldBooleanValueSegment, FORMAT_ID_ParameterStatusSegment, FORMAT_ID_SortedTimeValueSegment, FORMAT_ID_StringValueSegment, formatId| Modifier and Type | Method and Description |
|---|---|
void |
add(E e)
add element to the end of the segment
|
void |
add(int pos,
E e) |
boolean |
equals(Object obj) |
E |
get(int index) |
int |
getMaxSerializedSize() |
E[] |
getRange(int posStart,
int posStop,
boolean ascending)
returns an array containing the values in the range [posStart, posStop) if ascending or [posStop, posStart) if descending
|
E[] |
getRleRangeDescending(int posStart,
int posStop) |
protected void |
parse(ByteBuffer bb) |
int |
size()
the number of elements in this segment (not taking into account any compression due to run-length encoding)
|
void |
writeRaw(ByteBuffer bb) |
void |
writeTo(ByteBuffer bb) |
getFormatId, parseSegmentpublic void add(E e)
e - public void add(int pos,
E e)
public void writeTo(ByteBuffer bb)
writeTo in class BaseSegmentpublic void writeRaw(ByteBuffer bb)
protected void parse(ByteBuffer bb) throws DecodingException
DecodingExceptionpublic int getMaxSerializedSize()
getMaxSerializedSize in class BaseSegmentpublic E[] getRange(int posStart, int posStop, boolean ascending)
BaseSegmentgetRange in class BaseSegmentpublic E[] getRleRangeDescending(int posStart, int posStop)
public E get(int index)
public int size()
size in class BaseSegmentCopyright © 2017 Space Applications Services. All rights reserved.