Package org.epics.archiverappliance.data
Class VectorValue<T extends Number>
- java.lang.Object
-
- org.epics.archiverappliance.data.VectorValue<T>
-
- Type Parameters:
T
-
- All Implemented Interfaces:
SampleValue
public class VectorValue<T extends Number> extends Object implements SampleValue
An implementation of SampleValue for vector numbers.- Author:
- mshankar
-
-
Constructor Summary
Constructors Constructor Description VectorValue(List<T> 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
-
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
-
toString
public String toString()
- Specified by:
toString
in interfaceSampleValue
- Overrides:
toString
in classObject
-
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
-
-