net.percederberg.mibble.value
Class HexNumberValue
java.lang.Object
net.percederberg.mibble.MibValue
net.percederberg.mibble.value.NumberValue
net.percederberg.mibble.value.HexNumberValue
- All Implemented Interfaces:
- java.lang.Comparable
public class HexNumberValue
- extends NumberValue
A hexadecimal numeric MIB value.
- Since:
- 2.6
|
Constructor Summary |
HexNumberValue(java.lang.Number value)
Creates a new hexadecimal number value. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
HexNumberValue
public HexNumberValue(java.lang.Number value)
- Creates a new hexadecimal number value.
- Parameters:
value - the number value
initialize
public MibValue initialize(MibLoaderLog log,
MibType type)
- Initializes the MIB value. This will remove all levels of
indirection present, such as references to other values. No
value information is lost by this operation. This method may
modify this object as a side-effect, and will return the basic
value.
NOTE: This is an internal method that should
only be called by the MIB loader.
- Overrides:
initialize in class NumberValue
- Parameters:
log - the MIB loader logtype - the value type
- Returns:
- the basic MIB value
toString
public java.lang.String toString()
- Returns a string representation of this value.
- Overrides:
toString in class NumberValue
- Returns:
- a string representation of this value