|
HOME | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ireasoning.protocol.snmp.SnmpUInt
This class represents an 32-bit snmp unsigned integer object. The UInteger32 type represents integer-valued information between 0 and 2^32-1 inclusive (0 to 4294967295 decimal).
Field Summary | |
static SnmpUInt |
MAX_VALUE
Max value of unsigned integer |
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 | |
SnmpUInt()
Constructs SnmpUInt object |
|
SnmpUInt(long value)
Constructs an SnmpUInt object with the specified value. |
|
SnmpUInt(SnmpUInt uint32)
Makes a copy of passed object |
|
SnmpUInt(String value)
Constructs an SnmpUInt object with the specified value. |
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.UNSIGNED32 |
String |
getTypeString()
Returns "UnsignedInteger" |
long |
getValue()
Returns the integer value of this object |
int |
hashCode()
Returns a hash code value for the object |
void |
setValue(long value)
Sets a new value |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final SnmpUInt MAX_VALUE
Constructor Detail |
public SnmpUInt()
public SnmpUInt(String value)
IllegalArgumentException
- raised if passed value is negative or too bigpublic SnmpUInt(long value)
IllegalArgumentException
- raised if passed value is negative or too bigpublic SnmpUInt(SnmpUInt uint32)
Method Detail |
public long getValue()
public void setValue(long value)
public int getType()
getType
in interface SnmpDataType
public String getTypeString()
getTypeString
in interface SnmpDataType
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 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 |