|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.percederberg.mibble.MibValue
net.percederberg.mibble.value.NumberValue
public class NumberValue
A numeric MIB value.
| Constructor Summary | |
|---|---|
NumberValue(java.lang.Number value)
Creates a new number value. |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object obj)
Compares this object with the specified object for order. |
MibValue |
createReference()
Creates a value reference to this value. |
boolean |
equals(java.lang.Object obj)
Checks if this object equals another object. |
protected int |
getMinimumLength(MibType type,
int byteLength)
Returns the minimum number of characters for the ASCII representation of the number value. |
int |
hashCode()
Returns a hash code for this object. |
MibValue |
initialize(MibLoaderLog log,
MibType type)
Initializes the MIB value. |
java.lang.Object |
toObject()
Returns a Java Number representation of this value. |
java.lang.String |
toString()
Returns a string representation of this value. |
| Methods inherited from class net.percederberg.mibble.MibValue |
|---|
clear, getName, getReferenceSymbol, isReferenceTo, isReferenceTo, setReferenceSymbol |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NumberValue(java.lang.Number value)
value - the number value| Method Detail |
|---|
public MibValue initialize(MibLoaderLog log,
MibType type)
NOTE: This is an internal method that should only be called by the MIB loader.
initialize in class MibValuelog - the MIB loader logtype - the value type
public MibValue createReference()
NOTE: This is an internal method that should only be called by the MIB loader.
createReference in class MibValuepublic int compareTo(java.lang.Object obj)
obj - the object to compare to
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object to compare with
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.Object toObject()
toObject in class MibValuepublic java.lang.String toString()
toString in class java.lang.Object
protected int getMinimumLength(MibType type,
int byteLength)
type - the MIB value typebyteLength - the length of a printed byte
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||