Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for nextSetBit (0.25 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) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 16 22:49:59 GMT 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) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed May 16 22:49:59 GMT 2018
    - 3.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/SmallCharMatcher.java

        boolean containsZero = chars.get(0);
        // Compute the hash table.
        char[] table = new char[chooseTableSize(size)];
        int mask = table.length - 1;
        for (int c = chars.nextSetBit(0); c != -1; c = chars.nextSetBit(c + 1)) {
          // Compute the filter at the same time.
          filter |= 1L << c;
          int index = smear(c) & mask;
          while (true) {
            // Check for empty.
            if (table[index] == 0) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/base/SmallCharMatcher.java

        boolean containsZero = chars.get(0);
        // Compute the hash table.
        char[] table = new char[chooseTableSize(size)];
        int mask = table.length - 1;
        for (int c = chars.nextSetBit(0); c != -1; c = chars.nextSetBit(c + 1)) {
          // Compute the filter at the same time.
          filter |= 1L << c;
          int index = smear(c) & mask;
          while (true) {
            // Check for empty.
            if (table[index] == 0) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  5. android/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())
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 53.7K bytes
    - Viewed (0)
  6. 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())
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 53.8K bytes
    - Viewed (0)
  7. 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
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 19.9K bytes
    - Viewed (0)
  8. 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();
                  }
    
                  /*
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 77.2K bytes
    - Viewed (0)
Back to top