| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final synchronized int | bitCount()
Implements com. |
| public final synchronized void | clear(final int
bit number, restricted to [0.. bitnum)size()-1].Implements com. bitnum according to bit.
|
| public final synchronized void | clearField(final boolean bit)
Implements com. bit.
|
| public final synchronized boolean | copy(final int
source bit number, restricted to [0.. srcBitnum, final int size()-1].destination bit number, restricted to [0.. dstBitnum)size()-1].Implements com. srcBitnum to position dstBitnum
and returning true if the bit is set, otherwise false.
|
| public final synchronized int | copy32(final int
source bit number, restricted to [0.. srcLowBitnum, final int size()-1].destination bit number, restricted to [0.. dstLowBitnum, final int length)size()-1].Implements com. length bits at position srcLowBitnum to position dstLowBitnum
and returning the bits.
|
| public final synchronized boolean | get(final int
bit number, restricted to [0.. bitnum)size()-1].Implements com. true if the bit at position bitnum is set, otherwise false.
|
| public final synchronized int | get32(final int
storage bit position of the lowest bit, restricted to [0.. lowBitnum, final int size()-length].number of bits to read, constrained to [0..32]. length)Implements com. length bits from this storage,
starting with the lowest bit from the storage position lowBitnum.
|
| public final synchronized boolean | put(final int
bit number, restricted to [0.. bitnum, final boolean bit)size()-1].Implements com. bitnum according to bit
and return the previous value.
|
| public final synchronized void | put32(final int
storage bit position of the lowest bit, restricted to [0.. lowBitnum, final int size()-length].number of bits to write, constrained to [0..32]. length, final int the actual bits to be put into this storage data)Implements com. length bits of given data into this storage,
starting w/ the lowest bit to the storage position lowBitnum.
|
| public final synchronized void | set(final int
bit number, restricted to [0.. bitnum)size()-1].Implements com. bitnum according to bit.
|
| public final synchronized int | size()
Implements com. int field.
|
| impl | back to summary |
|---|---|
| private final Bitfield impl | |
| SyncedBitfield | back to summary |
|---|---|
| public SyncedBitfield(final Bitfield impl) | |
| bitCount | back to summary |
|---|---|
| public final synchronized int bitCount() Implements com. Doc from com. Returns the number of one bits within this bitfield.
Utilizes {#link
| |
| clear | back to summary |
|---|---|
| public final synchronized void clear(final int bitnum) throws IndexOutOfBoundsException Implements com. Doc from com. Clear the bit at position
| |
| clearField | back to summary |
|---|---|
| public final synchronized void clearField(final boolean bit) Implements com. Doc from com. Set all bits of this bitfield to the given value
| |
| copy | back to summary |
|---|---|
| public final synchronized boolean copy(final int srcBitnum, final int dstBitnum) throws IndexOutOfBoundsException Implements com. Doc from com. Copies the bit at position
| |
| copy32 | back to summary |
|---|---|
| public final synchronized int copy32(final int srcLowBitnum, final int dstLowBitnum, final int length) throws IndexOutOfBoundsException Implements com. Doc from com. Copies
Implementation shall operate as if invoking
| |
| get | back to summary |
|---|---|
| public final synchronized boolean get(final int bitnum) throws IndexOutOfBoundsException Implements com. Doc from com. Return
| |
| get32 | back to summary |
|---|---|
| public final synchronized int get32(final int lowBitnum, final int length) throws IndexOutOfBoundsException Implements com. Doc from com. Returns
| |
| put | back to summary |
|---|---|
| public final synchronized boolean put(final int bitnum, final boolean bit) throws IndexOutOfBoundsException Implements com. Doc from com. Set or clear the bit at position
| |
| put32 | back to summary |
|---|---|
| public final synchronized void put32(final int lowBitnum, final int length, final int data) throws IndexOutOfBoundsException Implements com. Doc from com. Puts
| |
| set | back to summary |
|---|---|
| public final synchronized void set(final int bitnum) throws IndexOutOfBoundsException Implements com. Doc from com. Set the bit at position
| |
| size | back to summary |
|---|---|
| public final synchronized int size() Implements com. Doc from com. Returns the storage size in bit units, e.g. 32 bit for implementations using one
| |