public class GenericValueSegment extends BaseSegment implements ValueSegment
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| Constructor and Description |
|---|
GenericValueSegment() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int pos,
Value v) |
BaseSegment |
consolidate()
Transform this generic segment in one of the specialised versions
|
boolean |
equals(Object obj) |
int |
getMaxSerializedSize() |
Value[] |
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
|
Value |
getValue(int index)
returns Value at position index
|
int |
size() |
void |
writeTo(ByteBuffer bb)
Encode using regular protobuf delimited field writes
|
getFormatId, parseSegmentpublic void add(int pos,
Value v)
add in interface ValueSegmentpublic void writeTo(ByteBuffer bb)
writeTo in class BaseSegmentpublic BaseSegment consolidate()
consolidate in interface ValueSegmentpublic int getMaxSerializedSize()
getMaxSerializedSize in class BaseSegmentpublic Value getValue(int index)
ValueSegmentgetValue in interface ValueSegmentpublic Value[] getRange(int posStart, int posStop, boolean ascending)
BaseSegmentgetRange in class BaseSegmentpublic int size()
size in interface ValueSegmentsize in class BaseSegmentCopyright © 2018 Space Applications Services. All rights reserved.