@Test public void testSegmentUse() { ConcurrentBitSet bst = new ConcurrentBitSet(50001, 4); assertEquals(0, bst.getAndSetNextClearBit(0)); assertEquals(1, bst.getAndSetNextClearBit(0)); assertEquals(2, bst.getAndSetNextClearBit(4)); }
public int getAndSetNextClearBit() { return getAndSetNextClearBit(counter.getAndIncrement()); }
ConcurrentBitSet { public int getAndSetNextClearBit() { return getAndSetNextClearBit(counter.getAndIncrement()); } }
ConcurrentBitSet { public int getAndSetNextClearBit() { return getAndSetNextClearBit(counter.getAndIncrement()); } ConcurrentBitSet(int maxBits, int concurrencyLevel); }
ConcurrentBitSet { public int getAndSetNextClearBit() { return getAndSetNextClearBit(counter.getAndIncrement()); } ConcurrentBitSet(int maxBits, int concurrencyLevel); void clear(int bitIndex); int getAndSetNextClearBit(); int getNextSegment(); int getBitsSet(int segment); int getHighestBitSet(int segment); int getAndSetNextClearBit(int segment); int getTotalBits(); int getBitsSet(); int getBitsPerSegment(); void setCompact(boolean compact); int compactHighestBitSet(int segment); @Override String toString(); }
ConcurrentBitSet { public int getAndSetNextClearBit() { return getAndSetNextClearBit(counter.getAndIncrement()); } ConcurrentBitSet(int maxBits, int concurrencyLevel); void clear(int bitIndex); int getAndSetNextClearBit(); int getNextSegment(); int getBitsSet(int segment); int getHighestBitSet(int segment); int getAndSetNextClearBit(int segment); int getTotalBits(); int getBitsSet(); int getBitsPerSegment(); void setCompact(boolean compact); int compactHighestBitSet(int segment); @Override String toString();  }