public class LongValueSegment 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| Modifier and Type | Method and Description |
|---|---|
void |
add(int pos,
Value v) |
LongValueSegment |
consolidate() |
static LongValueSegment |
consolidate(List<Value> values,
Yamcs.Value.Type type) |
int |
getMaxSerializedSize() |
ValueArray |
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
|
static LongValueSegment |
parseFrom(ByteBuffer bb) |
int |
size() |
void |
writeTo(ByteBuffer bb) |
getFormatId, parseSegmentpublic void writeTo(ByteBuffer bb)
writeTo in class BaseSegmentpublic static LongValueSegment parseFrom(ByteBuffer bb) throws DecodingException
DecodingExceptionpublic static LongValueSegment consolidate(List<Value> values, Yamcs.Value.Type type)
public int getMaxSerializedSize()
getMaxSerializedSize in class BaseSegmentpublic ValueArray getRange(int posStart, int posStop, boolean ascending)
ValueSegmentgetRange in interface ValueSegmentpublic Value getValue(int index)
ValueSegmentgetValue in interface ValueSegmentpublic int size()
size in interface ValueSegmentsize in class BaseSegmentpublic void add(int pos,
Value v)
add in interface ValueSegmentpublic LongValueSegment consolidate()
consolidate in interface ValueSegmentCopyright © 2018 Space Applications Services. All rights reserved.