Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for Clarke (0.67 sec)

  1. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

          }
        }
        Arrays.fill(contents, uniques, n, null);
        if (uniques < contents.length / 2) {
          // Deduplication eliminated many of the elements.  We don't want to retain an arbitrarily
          // large array relative to the number of elements, so we cap the ratio.
          contents = Arrays.copyOf(contents, uniques);
        }
        return new RegularImmutableSortedSet<E>(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableRangeSet.java

       * ranges {@code [3..3)} and {@code [4..4)}.
       *
       * <p><b>Warning:</b> Be extremely careful what you do with the {@code asSet} view of a large
       * range set (such as {@code ImmutableRangeSet.of(Range.greaterThan(0))}). Certain operations on
       * such a set can be performed efficiently, but others (such as {@link Set#hashCode} or {@link
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 27.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Ordering.java

        checkNotNull(iterator);
        checkNonnegative(k, "k");
    
        if (k == 0 || !iterator.hasNext()) {
          return Collections.emptyList();
        } else if (k >= Integer.MAX_VALUE / 2) {
          // k is really large; just do a straightforward sorted-copy-and-sublist
          ArrayList<E> list = Lists.newArrayList(iterator);
          Collections.sort(list, this);
          if (list.size() > k) {
            list.subList(k, list.size()).clear();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 39.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableSet.java

            tableSize <<= 1;
          }
          return tableSize;
        }
    
        // The table can't be completely full or we'll get infinite reprobes
        checkArgument(setSize < MAX_TABLE_SIZE, "collection too large");
        return MAX_TABLE_SIZE;
      }
    
      /**
       * Returns an immutable set containing each of {@code elements}, minus duplicates, in the order
       * each appears first in the source collection.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Maps.java

          // path when the first operation on the new map is putAll(otherMap). There, prior to
          // https://github.com/openjdk/jdk/commit/3e393047e12147a81e2899784b943923fc34da8e, a bug
          // meant that sometimes a too-large threshold is calculated. However, this new threshold is
          // independent of the initial capacity, except that it won't be lower than the threshold
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 159.6K bytes
    - Viewed (0)
Back to top