Javolution 6.0.0 java
|
Public Member Functions | |
int | cardinality () |
boolean | get (int bitIndex) |
BitSetService | get (int fromIndex, int toIndex) |
boolean | intersects (BitSetService that) |
int | length () |
int | nextClearBit (int fromIndex) |
int | nextSetBit (int fromIndex) |
int | previousClearBit (int fromIndex) |
int | previousSetBit (int fromIndex) |
void | clear (int bitIndex) |
void | clear (int fromIndex, int toIndex) |
boolean | getAndSet (int bitIndex, boolean value) |
void | set (int bitIndex) |
void | set (int bitIndex, boolean value) |
void | set (int fromIndex, int toIndex) |
void | set (int fromIndex, int toIndex, boolean value) |
void | flip (int bitIndex) |
void | flip (int fromIndex, int toIndex) |
void | and (BitSetService that) |
void | andNot (BitSetService that) |
void | or (BitSetService that) |
void | xor (BitSetService that) |
long[] | toLongArray () |
SetService< E > | threadSafe () |
The set of related functionalities which can be used/reused to implement bit-sets collections.
Definition at line 23 of file BitSetService.java.
void javolution.util.service.BitSetService.and | ( | BitSetService | that | ) |
See FastBitSet#and(FastBitSet)
Implemented in javolution.util.internal.bitset.BitSetServiceImpl.
Referenced by javolution.util.FastBitSet.and().
void javolution.util.service.BitSetService.andNot | ( | BitSetService | that | ) |
See FastBitSet#andNot(FastBitSet)
Implemented in javolution.util.internal.bitset.BitSetServiceImpl.
Referenced by javolution.util.FastBitSet.andNot().
int javolution.util.service.BitSetService.cardinality | ( | ) |
Implemented in javolution.util.internal.bitset.BitSetServiceImpl.
Referenced by javolution.util.FastBitSet.cardinality().
void javolution.util.service.BitSetService.clear | ( | int | bitIndex | ) |
Implemented in javolution.util.internal.bitset.BitSetServiceImpl.
Referenced by javolution.util.FastBitSet.clear(), and javolution.util.internal.bitset.BitSetIteratorImpl.remove().
void javolution.util.service.BitSetService.clear | ( | int | fromIndex, |
int | toIndex | ||
) |
See FastBitSet#clear(int, int)
Implemented in javolution.util.internal.bitset.BitSetServiceImpl.
void javolution.util.service.BitSetService.flip | ( | int | bitIndex | ) |
Implemented in javolution.util.internal.bitset.BitSetServiceImpl.
Referenced by javolution.util.FastBitSet.flip().
void javolution.util.service.BitSetService.flip | ( | int | fromIndex, |
int | toIndex | ||
) |
Implemented in javolution.util.internal.bitset.BitSetServiceImpl.
boolean javolution.util.service.BitSetService.get | ( | int | bitIndex | ) |
Implemented in javolution.util.internal.bitset.BitSetServiceImpl.
Referenced by javolution.util.FastBitSet.get().
BitSetService javolution.util.service.BitSetService.get | ( | int | fromIndex, |
int | toIndex | ||
) |
Implemented in javolution.util.internal.bitset.BitSetServiceImpl.
boolean javolution.util.service.BitSetService.getAndSet | ( | int | bitIndex, |
boolean | value | ||
) |
Clear or sets the specified bit, returns true
if previously set; false
otherwise.
Implemented in javolution.util.internal.bitset.BitSetServiceImpl.
boolean javolution.util.service.BitSetService.intersects | ( | BitSetService | that | ) |
See FastBitSet#intersects(FastBitSet)
Implemented in javolution.util.internal.bitset.BitSetServiceImpl.
Referenced by javolution.util.FastBitSet.intersects().
int javolution.util.service.BitSetService.length | ( | ) |
Implemented in javolution.util.internal.bitset.BitSetServiceImpl.
Referenced by javolution.util.FastBitSet.length().
int javolution.util.service.BitSetService.nextClearBit | ( | int | fromIndex | ) |
See FastBitSet#nextClearBit(int)
Implemented in javolution.util.internal.bitset.BitSetServiceImpl.
Referenced by javolution.util.FastBitSet.nextClearBit().
int javolution.util.service.BitSetService.nextSetBit | ( | int | fromIndex | ) |
See FastBitSet#nextSetBit(int)
Implemented in javolution.util.internal.bitset.BitSetServiceImpl.
Referenced by javolution.util.internal.bitset.BitSetIteratorImpl.BitSetIteratorImpl(), javolution.util.internal.bitset.BitSetIteratorImpl.next(), and javolution.util.FastBitSet.nextSetBit().
void javolution.util.service.BitSetService.or | ( | BitSetService | that | ) |
Implemented in javolution.util.internal.bitset.BitSetServiceImpl.
Referenced by javolution.util.FastBitSet.or().
int javolution.util.service.BitSetService.previousClearBit | ( | int | fromIndex | ) |
See FastBitSet#previousClearBit(int)
Implemented in javolution.util.internal.bitset.BitSetServiceImpl.
Referenced by javolution.util.FastBitSet.previousClearBit().
int javolution.util.service.BitSetService.previousSetBit | ( | int | fromIndex | ) |
See FastBitSet#previousSetBit(int)
Implemented in javolution.util.internal.bitset.BitSetServiceImpl.
Referenced by javolution.util.FastBitSet.previousSetBit().
void javolution.util.service.BitSetService.set | ( | int | bitIndex | ) |
Implemented in javolution.util.internal.bitset.BitSetServiceImpl.
Referenced by javolution.util.FastBitSet.set().
void javolution.util.service.BitSetService.set | ( | int | bitIndex, |
boolean | value | ||
) |
See FastBitSet#set(int, boolean)
Implemented in javolution.util.internal.bitset.BitSetServiceImpl.
void javolution.util.service.BitSetService.set | ( | int | fromIndex, |
int | toIndex | ||
) |
Implemented in javolution.util.internal.bitset.BitSetServiceImpl.
void javolution.util.service.BitSetService.set | ( | int | fromIndex, |
int | toIndex, | ||
boolean | value | ||
) |
See FastBitSet#set(int, int, boolean)
Implemented in javolution.util.internal.bitset.BitSetServiceImpl.
|
inherited |
Returns a thread-safe version of this service (used during parallel updates).
long [] javolution.util.service.BitSetService.toLongArray | ( | ) |
Returns the minimal length long[]
representation of this bitset.
Implemented in javolution.util.internal.bitset.BitSetServiceImpl.
Referenced by javolution.util.internal.bitset.BitSetServiceImpl.and(), javolution.util.internal.bitset.BitSetServiceImpl.andNot(), javolution.util.internal.bitset.BitSetServiceImpl.intersects(), javolution.util.internal.bitset.BitSetServiceImpl.or(), and javolution.util.internal.bitset.BitSetServiceImpl.xor().
void javolution.util.service.BitSetService.xor | ( | BitSetService | that | ) |
See FastBitSet#xor(FastBitSet)
Implemented in javolution.util.internal.bitset.BitSetServiceImpl.
Referenced by javolution.util.FastBitSet.xor().