public class SnmpGauge32 extends SnmpUInt32
Modifier and Type | Field and Description |
---|---|
static byte |
ASNTYPE
Defines the ASN.1 type for this object.
|
(package private) static long |
serialVersionUID
for serialzation support
|
Constructor and Description |
---|
SnmpGauge32()
Constructs the default counter object.
|
SnmpGauge32(long value)
Constructs the object with the specified
value.
|
SnmpGauge32(java.lang.Long value)
Constructs the object with the specified value.
|
SnmpGauge32(SnmpGauge32 second)
Constructs a new object with the same value
as the passed object.
|
SnmpGauge32(SnmpUInt32 uint32)
Constructs a new object with the value
constained in the SnmpUInt32 object.
|
SnmpGauge32(java.lang.String value)
Simple class constructor that is used to create an initialize
the new instance with the unsigned value decoded from the
passed String argument.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Creates a new object that is a duplicate of the
current object.
|
SnmpSyntax |
duplicate()
Creates a new object that is a duplicate of the
current object.
|
byte |
typeId()
Returns the ASN.1 type specific to this object.
|
static final long serialVersionUID
public static final byte ASNTYPE
public SnmpGauge32()
public SnmpGauge32(long value)
value
- The default value for the object.public SnmpGauge32(java.lang.Long value)
value
- The default value for the object.public SnmpGauge32(SnmpGauge32 second)
second
- The object to recover values from.public SnmpGauge32(SnmpUInt32 uint32)
uint32
- The SnmpUInt32 object to copy.public SnmpGauge32(java.lang.String value)
Simple class constructor that is used to create an initialize the new instance with the unsigned value decoded from the passed String argument. If the decoded argument is malformed, null, or evaluates to a negative value then an exception is generated.
value
- The string encoded value.java.lang.NumberFormatException
- Thrown if the passed value is
malformed and cannot be parsed.java.lang.IllegalArgumentException
- Throws if the passed value
evaluates to a negative value.java.lang.NullPointerException
- Throws if the passed value is
a null reference.public byte typeId()
typeId
in interface SnmpSyntax
typeId
in class SnmpUInt32
public SnmpSyntax duplicate()
duplicate
in interface SnmpSyntax
duplicate
in class SnmpUInt32
public java.lang.Object clone()
clone
in class SnmpUInt32
Generated by iurt on 2015.