java.lang.Object
org.snmp4j.smi.AbstractVariable
org.snmp4j.smi.UnsignedInteger32
org.snmp4j.smi.Gauge32
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<Variable>
,BERSerializable
,AssignableFromLong
,AssignableFromString
,Variable
The
Gauge32
class is indistinguishable from UnsignedInteger32
.- Version:
- 1.0
- Author:
- Frank Fock
- See Also:
-
Field Summary
Fields inherited from class org.snmp4j.smi.UnsignedInteger32
value
Fields inherited from class org.snmp4j.smi.AbstractVariable
SMISYNTAXES_PROPERTIES
-
Constructor Summary
-
Method Summary
Methods inherited from class org.snmp4j.smi.UnsignedInteger32
compareTo, decodeBER, encodeBER, equals, fromSubIndex, getBERLength, getBERLengthFromValue, getValue, hashCode, setValue, setValue, toInt, toLong, toString, toSubIndex
Methods inherited from class org.snmp4j.smi.AbstractVariable
createFromBER, createFromSyntax, equal, getBERPayloadLength, getSyntaxFromString, getSyntaxString, getSyntaxString, isDynamic, isException
-
Constructor Details
-
Gauge32
public Gauge32() -
Gauge32
public Gauge32(long value)
-
-
Method Details
-
getSyntax
public int getSyntax()Description copied from class:AbstractVariable
Gets the ASN.1 syntax identifier value of this SNMP variable.- Specified by:
getSyntax
in interfaceVariable
- Overrides:
getSyntax
in classUnsignedInteger32
- Returns:
- an integer value less than 128 for regular SMI objects and a value greater or equal than 128 for exception values like noSuchObject, noSuchInstance, and endOfMibView.
-
clone
Description copied from interface:Variable
Clones this variable. Cloning can be used by the SNMP4J API to better support concurrency by creating a clone for internal processing. The content of this object is independent to the content of the clone. Thus, changes to the clone will have no effect to this object.- Specified by:
clone
in interfaceVariable
- Overrides:
clone
in classUnsignedInteger32
- Returns:
- a new instance of this
Variable
with the same value.
-