|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.percederberg.mib.type.Type | +--net.percederberg.mib.type.EnumerationType
A class for handling integer type information.
Constructor Summary | |
EnumerationType()
Creates a new enumeration type with no values. |
Method Summary | |
void |
addValue(java.lang.String label,
java.lang.Number value)
Adds a value to the enumeration of possible values. |
boolean |
equals(java.lang.Object obj)
Checks if this type is equal to some other object. |
java.lang.String |
toString()
Returns a string description of this type. |
void |
transferType(TypeConverter converter)
Transfers the type information from this type to a type converter object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public EnumerationType()
Method Detail |
public void addValue(java.lang.String label, java.lang.Number value)
label
- the constant namevalue
- the constant valuepublic boolean equals(java.lang.Object obj)
equals
in class Type
obj
- an object
public java.lang.String toString()
toString
in class Type
public void transferType(TypeConverter converter)
transferType
in class Type
converter
- a type converter
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |