public class ConcurrentBitSet extends BitSet
BitSet.| Constructor and Description |
|---|
ConcurrentBitSet() |
ConcurrentBitSet(int nbits)
Creates a bit set whose initial size is large enough to explicitly represent bits with indices in the range
0 through nbits-1. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
get(int bitIndex) |
boolean |
isEmpty() |
int |
nextClearBit(int fromIndex) |
int |
nextSetBit(int fromIndex) |
int |
previousClearBit(int fromIndex) |
int |
previousSetBit(int fromIndex) |
void |
set(int bitIndex) |
void |
set(int fromIndex,
int toIndex) |
public ConcurrentBitSet()
public ConcurrentBitSet(int nbits)
0 through nbits-1. All bits are initially false.nbits - the initial size of the bit setNegativeArraySizeException - if the specified initial size is negativepublic int nextSetBit(int fromIndex)
nextSetBit in class BitSetpublic int nextClearBit(int fromIndex)
nextClearBit in class BitSetpublic int previousSetBit(int fromIndex)
previousSetBit in class BitSetpublic int previousClearBit(int fromIndex)
previousClearBit in class BitSetCopyright © 2017–2021 Apache Software Foundation. All rights reserved.