com.sun.jaw.snmp.common
Class SnmpCounter

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.SnmpCounter

public class SnmpCounter
extends SnmpUnsignedInt

The SnmpCounter class represents an SNMP counter.

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
SnmpCounter(int v)
          Constructs a new SnmpCounter from the specified integer value.
SnmpCounter(java.lang.Integer v)
          Constructs a new SnmpCounter from the specified Integer value.
SnmpCounter(long v)
          Constructs a new SnmpCounter from the specified long value.
SnmpCounter(java.lang.Long v)
          Constructs a new SnmpCounter 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

SnmpCounter

public SnmpCounter(int v)
            throws java.lang.IllegalArgumentException
Constructs a new SnmpCounter 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.

SnmpCounter

public SnmpCounter(java.lang.Integer v)
            throws java.lang.IllegalArgumentException
Constructs a new SnmpCounter 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.

SnmpCounter

public SnmpCounter(long v)
            throws java.lang.IllegalArgumentException
Constructs a new SnmpCounter 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.

SnmpCounter

public SnmpCounter(java.lang.Long v)
            throws java.lang.IllegalArgumentException
Constructs a new SnmpCounter 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