MCPcopy Create free account
hub / github.com/ReadyTalk/avian / next

Method next

classpath/java/util/BitSet.java:236–243  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

234 }
235
236 public MaskInfo next() {
237 int currentToIndex = Math.min(toIndex, (basePartition + currentPartitionOffset + 1) * BITS_PER_LONG);
238 long mask = getTrueMask(currentFirstIndex, currentToIndex);
239 MaskInfo info = new MaskInfo(mask, basePartition + currentPartitionOffset);
240 currentFirstIndex = currentToIndex;
241 currentPartitionOffset++;
242 return info;
243 }
244
245 public boolean hasNext() {
246 return currentPartitionOffset < numPartitionsToTraverse;

Callers 3

flipMethod · 0.95
setMethod · 0.95
clearMethod · 0.95

Calls 2

minMethod · 0.95
getTrueMaskMethod · 0.80

Tested by

no test coverage detected