org.opennms.mock.snmp
Class MockSnmpValue.NumberSnmpValue
java.lang.Object
org.opennms.mock.snmp.MockSnmpValue
org.opennms.mock.snmp.MockSnmpValue.NumberSnmpValue
- All Implemented Interfaces:
- SnmpValue
- Direct Known Subclasses:
- MockSnmpValue.Counter32SnmpValue, MockSnmpValue.Counter64SnmpValue, MockSnmpValue.Gauge32SnmpValue, MockSnmpValue.Integer32SnmpValue, MockSnmpValue.TimeticksSnmpValue
- Enclosing class:
- MockSnmpValue
public static class MockSnmpValue.NumberSnmpValue
- extends MockSnmpValue
| Nested classes/interfaces inherited from class org.opennms.mock.snmp.MockSnmpValue |
MockSnmpValue.Counter32SnmpValue, MockSnmpValue.Counter64SnmpValue, MockSnmpValue.Gauge32SnmpValue, MockSnmpValue.Integer32SnmpValue, MockSnmpValue.IpAddressSnmpValue, MockSnmpValue.NetworkAddressSnmpValue, MockSnmpValue.NumberSnmpValue, MockSnmpValue.OctetStringSnmpValue, MockSnmpValue.OidSnmpValue, MockSnmpValue.StringSnmpValue, MockSnmpValue.TimeticksSnmpValue |
| Fields inherited from interface org.opennms.netmgt.snmp.SnmpValue |
SNMP_COUNTER32, SNMP_COUNTER64, SNMP_END_OF_MIB, SNMP_GAUGE32, SNMP_INT32, SNMP_IPADDRESS, SNMP_NO_SUCH_INSTANCE, SNMP_NO_SUCH_OBJECT, SNMP_NULL, SNMP_OBJECT_IDENTIFIER, SNMP_OCTET_STRING, SNMP_OPAQUE, SNMP_TIMETICKS |
| Methods inherited from class org.opennms.mock.snmp.MockSnmpValue |
equals, getType, getValue, hashCode, isEndOfMib, isError, isNull, toDisplayString, toHexString, toInetAddress, toSnmpObjId, toString |
MockSnmpValue.NumberSnmpValue
public MockSnmpValue.NumberSnmpValue(int type,
String value)
isNumeric
public boolean isNumeric()
- Specified by:
isNumeric in interface SnmpValue- Overrides:
isNumeric in class MockSnmpValue
toInt
public int toInt()
- Specified by:
toInt in interface SnmpValue- Overrides:
toInt in class MockSnmpValue
toLong
public long toLong()
- Specified by:
toLong in interface SnmpValue- Overrides:
toLong in class MockSnmpValue
toBigInteger
public BigInteger toBigInteger()
- Specified by:
toBigInteger in interface SnmpValue- Overrides:
toBigInteger in class MockSnmpValue
getNumberString
public String getNumberString()
getBytes
public byte[] getBytes()
- Specified by:
getBytes in interface SnmpValue- Overrides:
getBytes in class MockSnmpValue
isDisplayable
public boolean isDisplayable()
- Specified by:
isDisplayable in interface SnmpValue- Overrides:
isDisplayable in class MockSnmpValue
Copyright © 2011. All Rights Reserved.