Class StringWithNumberCheckAdapter
- java.lang.Object
-
- org.opennms.netmgt.snmp.snmp4j.opaqueadapter.StringWithNumberCheckAdapter
-
- All Implemented Interfaces:
OpaqueTypeAdapter
public class StringWithNumberCheckAdapter extends Object implements OpaqueTypeAdapter
This adapter is used to collect numeric data which is transfered as string. To improove performance the content of the string is checked only onece at creation.
-
-
Constructor Summary
Constructors Constructor Description StringWithNumberCheckAdapter(String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Double
getDouble()
Long
getLong()
String
getString()
OpaqueValueType
getValueType()
-
-
-
Constructor Detail
-
StringWithNumberCheckAdapter
public StringWithNumberCheckAdapter(String value)
-
-
Method Detail
-
getLong
public Long getLong()
- Specified by:
getLong
in interfaceOpaqueTypeAdapter
-
getDouble
public Double getDouble()
- Specified by:
getDouble
in interfaceOpaqueTypeAdapter
-
getString
public String getString()
- Specified by:
getString
in interfaceOpaqueTypeAdapter
-
getValueType
public OpaqueValueType getValueType()
- Specified by:
getValueType
in interfaceOpaqueTypeAdapter
-
-