- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for nextSetBit (0.04 sec)
-
android/guava-tests/benchmark/com/google/common/base/WhitespaceMatcherBenchmark.java
} return result; } private static String allMatchingChars(BitSet bitSet) { char[] result = new char[bitSet.cardinality()]; for (int j = 0, c = bitSet.nextSetBit(0); j < result.length; ++j) { result[j] = (char) c; c = bitSet.nextSetBit(c + 1); } return new String(result); } private static String newTestString(Random random, BitSet bitSet, int percentMatching) {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 3.9K bytes - Viewed (0) -
guava/src/com/google/common/primitives/Booleans.java
* Returns the index of the first appearance of the value {@code target} in {@code array}. * * <p><b>Note:</b> consider representing the array as a {@link java.util.BitSet} instead, and * using {@link java.util.BitSet#nextSetBit(int)} or {@link java.util.BitSet#nextClearBit(int)}. * * @param array an array of {@code boolean} values, possibly empty * @param target a primitive {@code boolean} valueRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Sep 25 15:01:23 UTC 2025 - 20.6K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/Booleans.java
* Returns the index of the first appearance of the value {@code target} in {@code array}. * * <p><b>Note:</b> consider representing the array as a {@link java.util.BitSet} instead, and * using {@link java.util.BitSet#nextSetBit(int)} or {@link java.util.BitSet#nextClearBit(int)}. * * @param array an array of {@code boolean} values, possibly empty * @param target a primitive {@code boolean} valueRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Sep 25 15:01:23 UTC 2025 - 20.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Sets.java
@Override protected @Nullable Set<E> computeNext() { if (bits.isEmpty()) { bits.set(0, size); } else { int firstSetBit = bits.nextSetBit(0); int bitToFlip = bits.nextClearBit(firstSetBit); if (bitToFlip == index.size()) { return endOfData(); } /*Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 22 18:35:44 UTC 2025 - 81.6K bytes - Viewed (0)