|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Bits
Interface for Bitset-like structures.
| Nested Class Summary | |
|---|---|
static class |
Bits.MatchAllBits
Bits impl of the specified length with all bits set. |
static class |
Bits.MatchNoBits
Bits impl of the specified length with no bits set. |
| Field Summary | |
|---|---|
static Bits[] |
EMPTY_ARRAY
|
| Method Summary | |
|---|---|
boolean |
get(int index)
Returns the value of the bit with the specified index. |
int |
length()
Returns the number of bits in this set |
| Field Detail |
|---|
static final Bits[] EMPTY_ARRAY
| Method Detail |
|---|
boolean get(int index)
index.
index - index, should be non-negative and < length().
The result of passing negative or out of bounds values is undefined
by this interface, just don't do it!
true if the bit is set, false otherwise.int length()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||