com.sun.jaw.snmp.common
Class SnmpGauge

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

public class SnmpGauge
extends SnmpUnsignedInt

The SnmpGauge class represents an SNMP gauge.

See Also:
Serialized Form

Fields inherited from class com.sun.jaw.snmp.common.SnmpUnsignedInt
MAX_VALUE
 
Fields inherited from class com.sun.jaw.snmp.common.SnmpInt
value
 
Constructor Summary
SnmpGauge(int v)
          Constructs a new SnmpGauge from the specified integer value.
SnmpGauge(java.lang.Integer v)
          Constructs a new SnmpGauge from the specified Integer value.
SnmpGauge(long v)
          Constructs a new SnmpGauge from the specified long value.
SnmpGauge(java.lang.Long v)
          Constructs a new SnmpGauge from the specified Long value.
 
Method Summary
 java.lang.String getTypeName()
          Returns a textual description of the type object.
 
Methods inherited from class com.sun.jaw.snmp.common.SnmpInt
appendToOid, clone, duplicate, intValue, longValue, nextOid, toInteger, toLong, toOid, toOid, toString
 
Methods inherited from class com.sun.jaw.snmp.common.SnmpValue
toAsn1String
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SnmpGauge

public SnmpGauge(int v)
          throws java.lang.IllegalArgumentException
Constructs a new SnmpGauge from the specified integer value.
Parameters:
v - The initialization value.
Throws:
java.lang.IllegalArgumentException - The specified value is negative or larger than SnmpUnsignedInt.MAX_VALUE.

SnmpGauge

public SnmpGauge(java.lang.Integer v)
          throws java.lang.IllegalArgumentException
Constructs a new SnmpGauge from the specified Integer value.
Parameters:
v - The initialization value.
Throws:
java.lang.IllegalArgumentException - The specified value is negative or larger than SnmpUnsignedInt.MAX_VALUE.

SnmpGauge

public SnmpGauge(long v)
          throws java.lang.IllegalArgumentException
Constructs a new SnmpGauge from the specified long value.
Parameters:
v - The initialization value.
Throws:
java.lang.IllegalArgumentException - The specified value is negative or larger than SnmpUnsignedInt.MAX_VALUE.

SnmpGauge

public SnmpGauge(java.lang.Long v)
          throws java.lang.IllegalArgumentException
Constructs a new SnmpGauge from the specified Long value.
Parameters:
v - The initialization value.
Throws:
java.lang.IllegalArgumentException - The specified value is negative or larger than SnmpUnsignedInt.MAX_VALUE.
Method Detail

getTypeName

public final java.lang.String getTypeName()
Returns a textual description of the type object.
Returns:
ASN.1 textual description.
Overrides:
getTypeName in class SnmpUnsignedInt