public static class MockSnmpValue.NumberSnmpValue extends MockSnmpValue
MockSnmpValue.Counter32SnmpValue, MockSnmpValue.Counter64SnmpValue, MockSnmpValue.Gauge32SnmpValue, MockSnmpValue.Integer32SnmpValue, MockSnmpValue.IpAddressSnmpValue, MockSnmpValue.NetworkAddressSnmpValue, MockSnmpValue.NumberSnmpValue, MockSnmpValue.OctetStringSnmpValue, MockSnmpValue.OidSnmpValue, MockSnmpValue.StringSnmpValue, MockSnmpValue.TimeticksSnmpValue
END_OF_MIB, NO_SUCH_INSTANCE, NO_SUCH_OBJECT, NULL_VALUE
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
Constructor and Description |
---|
NumberSnmpValue(int type,
String value) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes() |
String |
getNumberString() |
boolean |
isDisplayable() |
boolean |
isNumeric() |
BigInteger |
toBigInteger() |
int |
toInt() |
long |
toLong() |
equals, getType, getValue, hashCode, isEndOfMib, isError, isNull, toDisplayString, toHexString, toInetAddress, toSnmpObjId, toString
allBytesDisplayable, allBytesISO_8859_1, allBytesUTF_8
public NumberSnmpValue(int type, String value)
public boolean isNumeric()
isNumeric
in interface SnmpValue
isNumeric
in class MockSnmpValue
public int toInt()
toInt
in interface SnmpValue
toInt
in class MockSnmpValue
public long toLong()
toLong
in interface SnmpValue
toLong
in class MockSnmpValue
public BigInteger toBigInteger()
toBigInteger
in interface SnmpValue
toBigInteger
in class MockSnmpValue
public String getNumberString()
public byte[] getBytes()
getBytes
in interface SnmpValue
getBytes
in class MockSnmpValue
public boolean isDisplayable()
isDisplayable
in interface SnmpValue
isDisplayable
in class MockSnmpValue
Copyright © 2021. All rights reserved.