public class MockSnmpValue extends Object implements SnmpValue
Modifier and Type | Class and Description |
---|---|
static class |
MockSnmpValue.Counter32SnmpValue |
static class |
MockSnmpValue.Counter64SnmpValue |
static class |
MockSnmpValue.Gauge32SnmpValue |
static class |
MockSnmpValue.Integer32SnmpValue |
static class |
MockSnmpValue.IpAddressSnmpValue |
static class |
MockSnmpValue.NetworkAddressSnmpValue |
static class |
MockSnmpValue.NumberSnmpValue |
static class |
MockSnmpValue.OctetStringSnmpValue |
static class |
MockSnmpValue.OidSnmpValue |
static class |
MockSnmpValue.StringSnmpValue |
static class |
MockSnmpValue.TimeticksSnmpValue |
Modifier and Type | Field and Description |
---|---|
static SnmpValue |
END_OF_MIB |
static SnmpValue |
NO_SUCH_INSTANCE |
static SnmpValue |
NO_SUCH_OBJECT |
static SnmpValue |
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 |
---|
MockSnmpValue(int type,
String value) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
byte[] |
getBytes() |
int |
getType() |
String |
getValue() |
int |
hashCode() |
boolean |
isDisplayable() |
boolean |
isEndOfMib() |
boolean |
isError() |
boolean |
isNull() |
boolean |
isNumeric() |
BigInteger |
toBigInteger() |
String |
toDisplayString() |
String |
toHexString() |
InetAddress |
toInetAddress() |
int |
toInt() |
long |
toLong() |
SnmpObjId |
toSnmpObjId() |
String |
toString() |
public static final SnmpValue NULL_VALUE
public static final SnmpValue NO_SUCH_INSTANCE
public static final SnmpValue NO_SUCH_OBJECT
public static final SnmpValue END_OF_MIB
public MockSnmpValue(int type, String value)
public boolean isEndOfMib()
isEndOfMib
in interface SnmpValue
public String toDisplayString()
toDisplayString
in interface SnmpValue
public String getValue()
public InetAddress toInetAddress()
toInetAddress
in interface SnmpValue
public String toHexString()
toHexString
in interface SnmpValue
public BigInteger toBigInteger()
toBigInteger
in interface SnmpValue
public SnmpObjId toSnmpObjId()
toSnmpObjId
in interface SnmpValue
public boolean isDisplayable()
isDisplayable
in interface SnmpValue
Copyright © 2015. All Rights Reserved.