public class BitSetValue extends MibValue
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getName, getReferenceSymbol, isReferenceTo, isReferenceTo, setReferenceSymbolpublic 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 valuespublic 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 MibValuelog - the MIB loader logtype - the value typeMibException - 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 MibValueprotected void clear()
NOTE: This is an internal method that should only be called by the MIB loader.
public java.util.ArrayList getBits()
public int compareTo(java.lang.Object obj)
obj - the object to compare topublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object to compare withpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.Object toObject()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toAsn1String(MibValueSymbol[] values)
values - the defined symbol values