|
HOME | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ireasoning.protocol.snmp.SnmpInt
This class represents 32-bit Snmp integer. The integer type represents integer-valued information between -2^31 and 2^31-1 inclusive (-2147483648 to 2147483647 decimal).
Field Summary |
Fields inherited from interface com.ireasoning.protocol.snmp.SnmpDataType |
BITS, BITSTRING, COUNTER32, COUNTER64, END_OF_MIB_VIEW, END_OF_MIB_VIEW_OBJECT, GAUGE32, INTEGER, IPADDRESS, NO_SUCH_INSTANCE, NO_SUCH_INSTANCE_OBJECT, NO_SUCH_OBJECT, NO_SUCH_OBJECT_OBJECT, NULL, OCTETSTRING, OID, OPAQUE, PDU, SEQUENCE, SEQUENCEOF, serialVersionUID, TIMETICKS, UNSIGNED32, VARBIND |
Fields inherited from interface com.ireasoning.protocol.Msg |
ERROR_TYPE |
Constructor Summary | |
SnmpInt()
Default constructor |
|
SnmpInt(int i)
Constructs an SnmpInt object with passed integer i |
|
SnmpInt(Integer i)
Constructs an SnmpInt object with passed integer i |
|
SnmpInt(SnmpInt i)
Makes a copy of passed snmpInt32 object |
|
SnmpInt(String str)
Constructs an SnmpInt object with passed String str |
Method Summary | |
SnmpDataType |
copy()
Makes a copy of itself |
int |
encode(com.ireasoning.protocol.snmp.SnmpEncoder encoder)
For internal use |
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one. |
int |
getType()
Returns SnmpDataType.INTEGER |
String |
getTypeString()
Returns "Integer" |
int |
getValue()
Returns the integer value of this class |
int |
hashCode()
Returns a hash code value for the object |
void |
setValue(int value)
Sets a new value |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SnmpInt()
public SnmpInt(int i)
public SnmpInt(Integer i)
public SnmpInt(String str)
public SnmpInt(SnmpInt i)
Method Detail |
public int getValue()
public void setValue(int value)
public String toString()
public SnmpDataType copy()
SnmpDataType
copy
in interface SnmpDataType
public int encode(com.ireasoning.protocol.snmp.SnmpEncoder encoder) throws SnmpEncodingException
SnmpDataType
encode
in interface SnmpDataType
SnmpEncodingException
public int getType()
getType
in interface SnmpDataType
public String getTypeString()
getTypeString
in interface SnmpDataType
public boolean equals(Object obj)
SnmpDataType
equals
in interface SnmpDataType
public int hashCode()
SnmpDataType
hashCode
in interface SnmpDataType
|
HOME | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |