All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.jaw.snmp.common.SnmpUnsignedInt

java.lang.Object
   |
   +----com.sun.jaw.snmp.common.SnmpValue
           |
           +----com.sun.jaw.snmp.common.SnmpInt
                   |
                   +----com.sun.jaw.snmp.common.SnmpUnsignedInt

public abstract class SnmpUnsignedInt
extends SnmpInt
The SnmpUnsignedInt class is the base for all SNMP syntaxes base on unsigned integer.


Constructor Index

 o SnmpUnsignedInt(Integer)
Construct a new SnmpUnsignedInt from the specified Integer value.
 o SnmpUnsignedInt(Long)
Construct a new SnmpUnsignedInt from the specified Long value.
 o SnmpUnsignedInt(long)
Construct a new SnmpUnsignedInt from the specified int value.

Method Index

 o getTypeName()
Returns a textual description of the object.
 o longValue()
Return the integer value as a long.
 o toLong()
Return the Long form.

Constructors

 o SnmpUnsignedInt
 public SnmpUnsignedInt(long v) throws IllegalArgumentException
Construct a new SnmpUnsignedInt from the specified int value.

Parameters:
v - The initialization value.
Throws: IllegalArgumentException
The specified value is negative.
 o SnmpUnsignedInt
 public SnmpUnsignedInt(Integer v) throws IllegalArgumentException
Construct a new SnmpUnsignedInt from the specified Integer value.

Parameters:
v - The initialization value.
Throws: IllegalArgumentException
The specified value is negative.
 o SnmpUnsignedInt
 public SnmpUnsignedInt(Long v) throws IllegalArgumentException
Construct a new SnmpUnsignedInt from the specified Long value.

Parameters:
v - The initialization value.
Throws: IllegalArgumentException
The specified value is negative.

Methods

 o toLong
 public Long toLong()
Return the Long form.

 o longValue
 public long longValue()
Return the integer value as a long.

 o getTypeName
 public String getTypeName()
Returns a textual description of the object.

Returns:
ASN.1 textual description.
Overrides:
getTypeName in class SnmpInt

All Packages  Class Hierarchy  This Package  Previous  Next  Index