org.netsnmp.ASN
Class INTEGER
java.lang.Object
|
+--org.netsnmp.ASN.ASNValue
|
+--org.netsnmp.ASN.INTEGER
- All Implemented Interfaces:
- Comparable, Serializable
- Direct Known Subclasses:
- GAUGE
- public class INTEGER
- extends ASNValue
- Author:
- Andrew E. Page aepage@users.sourceforge.net
- See Also:
- Serialized Form
Constructor Summary |
INTEGER(int data)
Creates a new instance of INTEGER |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
type
public static final ASN_TYPE type
data
public int data
INTEGER
public INTEGER(int data)
- Creates a new instance of INTEGER
toInt
public int toInt()
- Description copied from class:
ASNValue
- Converts the value to a java int.
- Overrides:
toInt
in class ASNValue
toInt64
public long toInt64()
- Description copied from class:
ASNValue
- Converts the value to java long.
- Overrides:
toInt64
in class ASNValue
asn_type
public int asn_type()
- Specified by:
asn_type
in class ASNValue
type
public ASN_TYPE type()
- Specified by:
type
in class ASNValue
toJavaObject
public Object toJavaObject()
- Description copied from class:
ASNValue
- Converts the value to a Java Object
- Specified by:
toJavaObject
in class ASNValue