|
||||||||||
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.BitSetValue
public class BitSetValue
A bit set MIB value.
Constructor Summary | |
---|---|
BitSetValue(java.util.BitSet value)
Creates a new bit set MIB value. |
|
BitSetValue(java.util.BitSet value,
java.util.ArrayList references)
Creates a new bit set MIB value. |
Method Summary | |
---|---|
protected void |
clear()
Clears and prepares this value for garbage collection. |
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. |
java.util.ArrayList |
getBits()
Returns all the bits in this bit set as individual number values. |
int |
hashCode()
Returns a hash code for this object. |
MibValue |
initialize(MibLoaderLog log,
MibType type)
Initializes the MIB value. |
java.lang.String |
toAsn1String(MibValueSymbol[] values)
Returns an ASN.1 representation of this value. |
java.lang.Object |
toObject()
Returns a Java BitSet representation of this value. |
java.lang.String |
toString()
Returns a string representation of this value. |
Methods inherited from class net.percederberg.mibble.MibValue |
---|
getName, getReferenceSymbol, isReferenceTo, isReferenceTo, setReferenceSymbol |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BitSetValue(java.util.BitSet value)
value
- the bit set valuepublic BitSetValue(java.util.BitSet value, java.util.ArrayList references)
value
- the bit set valuereferences
- the additional referenced bit valuesMethod Detail |
---|
public MibValue initialize(MibLoaderLog log, MibType type) throws MibException
NOTE: This is an internal method that should only be called by the MIB loader.
initialize
in class MibValue
log
- the MIB loader logtype
- the value type
MibException
- if an error was encountered during the
initializationpublic MibValue createReference()
NOTE: This is an internal method that should only be called by the MIB loader.
createReference
in class MibValue
protected void clear()
NOTE: This is an internal method that should only be called by the MIB loader.
clear
in class MibValue
public java.util.ArrayList getBits()
public int compareTo(java.lang.Object obj)
obj
- the object to compare to
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object to compare with
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.Object toObject()
toObject
in class MibValue
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toAsn1String(MibValueSymbol[] values)
values
- the defined symbol values
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |