Package org.epics.archiverappliance.data
Class ScalarValue<T extends Number>
java.lang.Object
org.epics.archiverappliance.data.ScalarValue<T>
- Type Parameters:
T-
- All Implemented Interfaces:
SampleValue,org.json.simple.JSONAware
An implementation of SampleValue for scalar numbers.
- Author:
- mshankar
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintgetStringValue(int index) getValue()getValue(int index) Return the value as a ByteBuffer that is ready to read.inthashCode()toString()
-
Constructor Details
-
ScalarValue
-
-
Method Details
-
getValue
- Specified by:
getValuein interfaceSampleValue
-
toString
- Specified by:
toStringin interfaceSampleValue- Overrides:
toStringin classObject
-
getElementCount
public int getElementCount()- Specified by:
getElementCountin interfaceSampleValue
-
getValue
- Specified by:
getValuein interfaceSampleValue
-
getStringValue
- Specified by:
getStringValuein interfaceSampleValue
-
getValues
- Specified by:
getValuesin interfaceSampleValue
-
hashCode
public int hashCode() -
equals
-
toJSONString
- Specified by:
toJSONStringin interfaceorg.json.simple.JSONAware- Specified by:
toJSONStringin interfaceSampleValue
-
getValueAsBytes
Description copied from interface:SampleValueReturn the value as a ByteBuffer that is ready to read.- Specified by:
getValueAsBytesin interfaceSampleValue- Returns:
- ByteBuffer
-