FileDocCategorySizeDatePackage
SnmpUnsignedInt.javaAPI DocJava SE 6 API3320Tue Jun 10 00:22:06 BST 2008com.sun.jmx.snmp

SnmpUnsignedInt

public abstract class SnmpUnsignedInt extends SnmpInt
Is the base for all SNMP syntaxes based on unsigned integers.

This API is a Sun Microsystems internal API and is subject to change without notice.

version
4.10 11/17/05
author
Sun Microsystems, Inc

Fields Summary
public static final long
MAX_VALUE
The largest value of the type unsigned int (2^32 - 1).
static final String
name
Name of the type.
Constructors Summary
public SnmpUnsignedInt(int v)
Constructs a new SnmpUnsignedInt from the specified integer value.

param
v The initialization value.
exception
IllegalArgumentException The specified value is negative or larger than {@link #MAX_VALUE SnmpUnsignedInt.MAX_VALUE}.


    // CONSTRUCTORS
    //-------------
                                     
         
        super(v);
    
public SnmpUnsignedInt(Integer v)
Constructs a new SnmpUnsignedInt from the specified Integer value.

param
v The initialization value.
exception
IllegalArgumentException The specified value is negative or larger than {@link #MAX_VALUE SnmpUnsignedInt.MAX_VALUE}.

        super(v);
    
public SnmpUnsignedInt(long v)
Constructs a new SnmpUnsignedInt from the specified long value.

param
v The initialization value.
exception
IllegalArgumentException The specified value is negative or larger than {@link #MAX_VALUE SnmpUnsignedInt.MAX_VALUE}.

        super(v);
    
public SnmpUnsignedInt(Long v)
Constructs a new SnmpUnsignedInt from the specified Long value.

param
v The initialization value.
exception
IllegalArgumentException The specified value is negative or larger than {@link #MAX_VALUE SnmpUnsignedInt.MAX_VALUE}.

        super(v);
    
Methods Summary
public java.lang.StringgetTypeName()
Returns a textual description of the type object.

return
ASN.1 textual description.

        return name ;
    
booleanisInitValueValid(int v)
This method has been defined to allow the sub-classes of SnmpInt to perform their own control at intialization time.

        if ((v < 0) || (v > SnmpUnsignedInt.MAX_VALUE)) {
            return false;
        }
        return true;
    
booleanisInitValueValid(long v)
This method has been defined to allow the sub-classes of SnmpInt to perform their own control at intialization time.

        if ((v < 0) || (v > SnmpUnsignedInt.MAX_VALUE)) {
            return false;
        }
        return true;