com.sun.jaw.snmp.common
Class SnmpUnsignedInt
java.lang.Object
|
+--com.sun.jaw.snmp.common.SnmpValue
|
+--com.sun.jaw.snmp.common.SnmpInt
|
+--com.sun.jaw.snmp.common.SnmpUnsignedInt
- Direct Known Subclasses:
- SnmpCounter, SnmpGauge, SnmpTimeticks
- public abstract class SnmpUnsignedInt
- extends SnmpInt
The SnmpUnsignedInt
class is the base for
all SNMP syntaxes base on unsigned integer.
- See Also:
- Serialized Form
Field Summary |
static long |
MAX_VALUE
The largest value of type unsigned int . |
Fields inherited from class com.sun.jaw.snmp.common.SnmpInt |
value |
Constructor Summary |
SnmpUnsignedInt(int v)
Constructs a new SnmpUnsignedInt from the specified integer value. |
SnmpUnsignedInt(java.lang.Integer v)
Constructs a new SnmpUnsignedInt from the specified Integer value. |
SnmpUnsignedInt(long v)
Constructs a new SnmpUnsignedInt from the specified long value. |
SnmpUnsignedInt(java.lang.Long v)
Constructs a new SnmpUnsignedInt 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 java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
MAX_VALUE
public static final long MAX_VALUE
- The largest value of type
unsigned int
.
- Since:
- JDMK 3.2
SnmpUnsignedInt
public SnmpUnsignedInt(int v)
throws java.lang.IllegalArgumentException
- Constructs a new
SnmpUnsignedInt
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
.
SnmpUnsignedInt
public SnmpUnsignedInt(java.lang.Integer v)
throws java.lang.IllegalArgumentException
- Constructs a new
SnmpUnsignedInt
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
.
SnmpUnsignedInt
public SnmpUnsignedInt(long v)
throws java.lang.IllegalArgumentException
- Constructs a new
SnmpUnsignedInt
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
.
SnmpUnsignedInt
public SnmpUnsignedInt(java.lang.Long v)
throws java.lang.IllegalArgumentException
- Constructs a new
SnmpUnsignedInt
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
.
getTypeName
public java.lang.String getTypeName()
- Returns a textual description of the type object.
- Returns:
- ASN.1 textual description.
- Overrides:
- getTypeName in class SnmpInt