| java.lang.Object | ||
| ↳ | com.sun.jmx.snmp.SnmpValue | |
| ↳ | com.sun.jmx.snmp.SnmpInt | |
Known Direct Subclasses
|
Known Indirect Subclasses
|
Represents an SNMP integer.
This API is a Sun Microsystems internal API and is subject to change without notice.
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.sun.jmx.snmp.SnmpDataTypeEnums
| |||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| value | This is where the value is stored. | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new
SnmpInt from the specified integer value. | |||||||||||
Constructs a new
SnmpInt from the specified Integer value. | |||||||||||
Constructs a new
SnmpInt from the specified long value. | |||||||||||
Constructs a new
SnmpInt from the specified Long value. | |||||||||||
Constructs a new
SnmpInt from the specified Enumerated value. | |||||||||||
Constructs a new
SnmpInt from the specified boolean value. | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Appends an
SnmpOid representing an SnmpInt to another OID. | |||||||||||
Clones the
SnmpInt object, making a copy of its data. | |||||||||||
Performs a clone action.
| |||||||||||
Returns a textual description of the type object.
| |||||||||||
Converts the integer value to its integer form.
| |||||||||||
Returns the long value of this
SnmpInt. | |||||||||||
Scans an index OID, skips the integer value and returns the position
of the next value.
| |||||||||||
Converts the integer value to its
Integer form. | |||||||||||
Converts the integer value to its
Long form. | |||||||||||
Converts the integer value to its
SnmpOid form. | |||||||||||
Extracts the integer from an index OID and returns its
value converted as an
SnmpOid. | |||||||||||
Converts the integer value to its
String form. | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.sun.jmx.snmp.SnmpValue
| |||||||||||
From class
java.lang.Object
| |||||||||||
This is where the value is stored. This long is signed.
Constructs a new SnmpInt from the specified integer value.
| v | The initialization value. |
|---|
| IllegalArgumentException | The specified value is smaller than Integer.MIN_VALUE
or larger than Integer.MAX_VALUE.
|
|---|
Constructs a new SnmpInt from the specified Integer value.
| v | The initialization value. |
|---|
| IllegalArgumentException | The specified value is smaller than Integer.MIN_VALUE
or larger than Integer.MAX_VALUE.
|
|---|
Constructs a new SnmpInt from the specified long value.
| v | The initialization value. |
|---|
| IllegalArgumentException | The specified value is smaller than Integer.MIN_VALUE
or larger than Integer.MAX_VALUE.
|
|---|
Constructs a new SnmpInt from the specified Long value.
| v | The initialization value. |
|---|
| IllegalArgumentException | The specified value is smaller than Integer.MIN_VALUE
or larger than Integer.MAX_VALUE.
|
|---|
Constructs a new SnmpInt from the specified Enumerated value.
| v | The initialization value. |
|---|
| IllegalArgumentException | The specified value is smaller than Integer.MIN_VALUE
or larger than Integer.MAX_VALUE. |
|---|
Constructs a new SnmpInt from the specified boolean value.
This constructor applies rfc1903 rule:
TruthValue ::= TEXTUAL-CONVENTION
STATUS current
DESCRIPTION
"Represents a boolean value."
SYNTAX INTEGER { true(1), false(2) }
| v | The initialization value. |
|---|
Appends an SnmpOid representing an SnmpInt to another OID.
| source | An OID representing an SnmpInt value. |
|---|---|
| dest | Where source should be appended. |
Clones the SnmpInt object, making a copy of its data.
Performs a clone action. This provides a workaround for the
SnmpValue interface.
SnmpValue clone.
Returns a textual description of the type object.
Converts the integer value to its integer form.
Returns the long value of this SnmpInt.
Scans an index OID, skips the integer value and returns the position of the next value.
| index | The index array. |
|---|---|
| start | The position in the index array. |
| SnmpStatusException | There is no integer value available at the start position. |
|---|
Converts the integer value to its Integer form.
Integer representation of the value.
Converts the integer value to its Long form.
Long representation of the value.
Converts the integer value to its SnmpOid form.
Extracts the integer from an index OID and returns its
value converted as an SnmpOid.
| index | The index array. |
|---|---|
| start | The position in the index array. |
| SnmpStatusException | There is no integer value available at the start position. |
|---|
Converts the integer value to its String form.
String representation of the value.