SourceForge.net Logo

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

Field Summary
 int data
           
static ASN_TYPE type
           
 
Constructor Summary
INTEGER(int data)
          Creates a new instance of INTEGER
 
Method Summary
 int asn_type()
           
 int toInt()
          Converts the value to a java int.
 long toInt64()
          Converts the value to java long.
 Object toJavaObject()
          Converts the value to a Java Object
 ASN_TYPE type()
           
 
Methods inherited from class org.netsnmp.ASN.ASNValue
compareTo, toBoolean, toOBJECTID, toOctetString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

public static final ASN_TYPE type

data

public int data
Constructor Detail

INTEGER

public INTEGER(int data)
Creates a new instance of INTEGER

Method Detail

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

SourceForge.net Logo