MCPcopy Create free account
hub / github.com/LFYSec/MScan / nextSetBit

Method nextSetBit

src/main/java/pascal/taie/util/collection/IBitSet.java:117–117  ·  view source on GitHub ↗

Returns the index of the first bit that is set to true that occurs on or after the specified starting index. If no such bit exists then -1 is returned. To iterate over the true bits in a BitSet, use the following loop: {@code for (int i = bs.nextSetBit(0);

(int fromIndex)

Source from the content-addressed store, hash-verified

115 * @throws IndexOutOfBoundsException if the specified index is negative
116 */
117 int nextSetBit(int fromIndex);
118
119 /**
120 * Returns the index of the first bit that is set to {@code false}

Callers 4

testNextSetBitMethod · 0.65
toStringMethod · 0.65
BitSetIteratorMethod · 0.65
nextMethod · 0.65

Implementers 1

AbstractBitSetsrc/main/java/pascal/taie/util/collect

Calls

no outgoing calls

Tested by 1

testNextSetBitMethod · 0.52