BitSet.previousClearBit

Returns the index of the nearest bit that is set to {@code false} that occurs on or before the specified starting index. If no such bit exists, or if {@code -1} is given as the starting index, then {@code -1} is returned.

@param fromIndex the index to start checking from (inclusive) @return the index of the previous clear bit, or {@code -1} if there is no such bit @throws IndexOutOfBoundsException if the specified index is less than {@code -1}

class BitSet
size_t
previousClearBit
(
size_t fromIndex
)

Meta