Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for nextSetBit (0.06 sec)

  1. android/guava-tests/benchmark/com/google/common/base/WhitespaceMatcherBenchmark.java

        return result;
      }
    
      private static String allMatchingChars(BitSet bitSet) {
        final 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed May 16 22:49:59 UTC 2018
    - 3.9K bytes
    - Viewed (0)
  2. guava-tests/benchmark/com/google/common/base/WhitespaceMatcherBenchmark.java

        return result;
      }
    
      private static String allMatchingChars(BitSet bitSet) {
        final 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed May 16 22:49:59 UTC 2018
    - 3.9K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/CharMatcher.java

        switch (totalCharacters) {
          case 0:
            return none();
          case 1:
            return is((char) table.nextSetBit(0));
          case 2:
            char c1 = (char) table.nextSetBit(0);
            char c2 = (char) table.nextSetBit(c1 + 1);
            return isEither(c1, c2);
          default:
            return isSmall(totalCharacters, table.length())
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 53.9K bytes
    - Viewed (0)
  4. 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} value
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  5. 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} value
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Sets.java

              @CheckForNull
              protected 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 78.8K bytes
    - Viewed (0)
Back to top