| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
  |
  +--com.adventnet.snmp.snmp2.SnmpVar
        |
        +--com.adventnet.snmp.snmp2.SnmpInt
Class of SNMP Integer Variable - Sub-class of SnmpVar This class can be used to created a SnmpVar object of type SnmpInt. It also has methods to retrieve the value in different forms(eg. interger String, byte).
| Constructor Summary | |
SnmpInt(int i)
Constructs a new SnmpInt object by taking an integer value as argument.  | 
|
| Method Summary | |
 boolean | 
equals(java.lang.Object obj)
This method returns true if both the SnmpInt objects are equal and false otherwise.  | 
 java.lang.Object | 
getVarObject()
Returns the value of this SnmpInt object as an Integer object.  | 
 int | 
intValue()
Returns the value of this SnmpInt object as an integer.  | 
 byte[] | 
toBytes()
To return the value of this SnmpInt object as raw bytes.  | 
 java.lang.String | 
toString()
To convert the value of this SnmpInt object to a printable string.  | 
 java.lang.String | 
toTagString()
To convert the value of this SnmpInt object to a printable string, where the type is tagged before the value with a tag INTEGER: .  | 
 java.lang.Object | 
toValue()
Returns the value of this SnmpInt object as an Integer object.  | 
| Methods inherited from class com.adventnet.snmp.snmp2.SnmpVar | 
createVariable, getError, getType, getTypeString | 
| Methods inherited from class java.lang.Object | 
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
public SnmpInt(int i)
i - Integer value for creating a new SnmpInt object.| Method Detail | 
public java.lang.Object getVarObject()
getVarObject in class SnmpVarpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the SnmpInt object whose equality is to be checked.public java.lang.Object toValue()
toValue in class SnmpVarpublic int intValue()
public java.lang.String toString()
toString in class SnmpVarpublic java.lang.String toTagString()
toTagString in class SnmpVarpublic byte[] toBytes()
toBytes in class SnmpVar
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||