Package org.epics.archiverappliance.data
Class VectorStringSampleValue
- java.lang.Object
-
- org.epics.archiverappliance.data.VectorStringSampleValue
-
- All Implemented Interfaces:
SampleValue
public class VectorStringSampleValue extends Object implements SampleValue
An implementation of SampleValue for vector strings.- Author:
- mshankar
-
-
Constructor Summary
Constructors Constructor Description VectorStringSampleValue(List<String> vals)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object obj)
int
getElementCount()
String
getStringValue(int index)
Number
getValue()
Number
getValue(int index)
ByteBuffer
getValueAsBytes()
Return the value as a ByteBuffer that is ready to read.List
getValues()
int
hashCode()
String
toJSONString()
String
toString()
-
-
-
Method Detail
-
toString
public String toString()
- Specified by:
toString
in interfaceSampleValue
- Overrides:
toString
in classObject
-
getValue
public Number getValue()
- Specified by:
getValue
in interfaceSampleValue
-
getElementCount
public int getElementCount()
- Specified by:
getElementCount
in interfaceSampleValue
-
getValue
public Number getValue(int index)
- Specified by:
getValue
in interfaceSampleValue
-
getStringValue
public String getStringValue(int index)
- Specified by:
getStringValue
in interfaceSampleValue
-
getValues
public List getValues()
- Specified by:
getValues
in interfaceSampleValue
-
toJSONString
public String toJSONString()
- Specified by:
toJSONString
in interfaceSampleValue
-
getValueAsBytes
public ByteBuffer getValueAsBytes()
Description copied from interface:SampleValue
Return the value as a ByteBuffer that is ready to read.- Specified by:
getValueAsBytes
in interfaceSampleValue
- Returns:
- ByteBuffer
-
-