public abstract class BitStringWithNamedBits extends BitString
Modifier and Type | Class and Description |
---|---|
static class |
BitStringWithNamedBits.NamedBit
Represents a single named bit as a NamedInteger.
|
Constructor and Description |
---|
BitStringWithNamedBits()
Constructs a new BitStringWithNamedBits that has no bits set.
|
BitStringWithNamedBits(int nbits)
Constructs a new BitStringWithNamedBits that has no bits set,
initialised to accommodate the given number of bits.
|
Modifier and Type | Method and Description |
---|---|
abstract BitStringWithNamedBits.NamedBit[] |
getNamedBits()
Gets the names of all bits of this type (not just the bits set in this value).
|
String |
toString()
Returns a string describing this set of bits,
using names for bits that have names and otherwise using numbers.
|
clear, clear, clone, copyOf, equals, get, hashCode, length, nextSetBit, set
checkModify, isReadOnly, setReadOnly
public BitStringWithNamedBits()
public BitStringWithNamedBits(int nbits)
nbits
- initial number of bitspublic String toString()
public abstract BitStringWithNamedBits.NamedBit[] getNamedBits()