Package org.yamcs.parameterarchive
Class StringValueSegment
- java.lang.Object
-
- org.yamcs.parameterarchive.BaseSegment
-
- org.yamcs.parameterarchive.ObjectSegment<String>
-
- org.yamcs.parameterarchive.StringValueSegment
-
- All Implemented Interfaces:
ValueSegment
public class StringValueSegment extends ObjectSegment<String> implements ValueSegment
-
-
Field Summary
Fields Modifier and Type Field Description static int
MAX_UTF8_CHAR_LENGTH
-
Fields inherited from class org.yamcs.parameterarchive.BaseSegment
FORMAT_ID_BinaryValueSegment, FORMAT_ID_BooleanValueSegment, FORMAT_ID_DoubleValueSegment, FORMAT_ID_FloatValueSegment, FORMAT_ID_GenericValueSegment, FORMAT_ID_IntValueSegment, FORMAT_ID_LongValueSegment, FORMAT_ID_ParameterStatusSegment, FORMAT_ID_SortedTimeValueSegment, FORMAT_ID_StringValueSegment, formatId
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int pos, Value v)
void
addValue(Value v)
StringValueSegment
consolidate()
static BaseSegment
consolidate(List<Value> values)
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 descendingValue
getValue(int index)
returns Value at position indexstatic StringValueSegment
parseFrom(ByteBuffer bb)
-
Methods inherited from class org.yamcs.parameterarchive.ObjectSegment
add, add, equals, get, getMaxSerializedSize, getRangeArray, getRleRangeDescending, parse, size, writeRaw, writeTo
-
Methods inherited from class org.yamcs.parameterarchive.BaseSegment
getFormatId, parseSegment
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.yamcs.parameterarchive.ValueSegment
size
-
-
-
-
Field Detail
-
MAX_UTF8_CHAR_LENGTH
public static final int MAX_UTF8_CHAR_LENGTH
- See Also:
- Constant Field Values
-
-
Method Detail
-
consolidate
public StringValueSegment consolidate()
- Specified by:
consolidate
in interfaceValueSegment
-
getValue
public Value getValue(int index)
Description copied from interface:ValueSegment
returns Value at position index- Specified by:
getValue
in interfaceValueSegment
- Returns:
- the value at the index
-
addValue
public void addValue(Value v)
-
consolidate
public static BaseSegment consolidate(List<Value> values)
-
add
public void add(int pos, Value v)
- Specified by:
add
in interfaceValueSegment
-
parseFrom
public static StringValueSegment parseFrom(ByteBuffer bb) throws DecodingException
- Throws:
DecodingException
-
getRange
public ValueArray getRange(int posStart, int posStop, boolean ascending)
Description copied from interface:ValueSegment
returns an array containing the values in the range [posStart, posStop) if ascending or [posStop, posStart) if descending- Specified by:
getRange
in interfaceValueSegment
- Returns:
- an array containing the values in the specified range
-
-