Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for soft (0.33 sec)

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

       *
       * <p>Note: the multimap assumes complete ownership over of {@code map} and the collections
       * returned by {@code factory}. Those objects should not be manually updated and they should not
       * use soft, weak, or phantom references.
       *
       * @param map place to store the mapping from each key to its corresponding values
       * @param factory supplier of new, empty collections that will each hold all values for a given
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 86.4K bytes
    - Viewed (0)
  2. maven-core/src/main/java/org/apache/maven/internal/impl/SisuDiBridgeModule.java

                        List<Binding<Q>> bindingList = new ArrayList<>(res);
                        Comparator<Binding<Q>> comparing = Comparator.comparing(Binding::getPriority);
                        bindingList.sort(comparing.reversed());
                        Binding<Q> binding = bindingList.get(0);
                        return compile(binding);
                    }
                    if (key.getRawType() == List.class) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 14:13:36 GMT 2024
    - 8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableBiMap.java

       * "two"=2, "three"=3}, and {@code keySet()} and {@code values()} respect the same order. If you
       * want a different order, consider using {@link #orderEntriesByValue(Comparator)}, which changes
       * this builder to sort entries by value.
       *
       * <p>Builder instances can be reused - it is safe to call {@link #buildOrThrow} multiple times to
       * build multiple bimaps in series. Each bimap is a superset of the bimaps created before it.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 22.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Sets.java

          int expectedSize) {
        return new LinkedHashSet<>(Maps.capacity(expectedSize));
      }
    
      // TreeSet
    
      /**
       * Creates a <i>mutable</i>, empty {@code TreeSet} instance sorted by the natural sort ordering of
       * its elements.
       *
       * <p><b>Note:</b> if mutability is not required, use {@link ImmutableSortedSet#of()} instead.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 77.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

                keys[i] = key;
                values[i] = value;
              }
            } else {
              // Need to sort and check for nulls and dupes.
              // Inline the Comparator implementation rather than transforming with a Function
              // to save code size.
              Arrays.sort(
                  entryArray,
                  0,
                  size,
                  (e1, e2) -> {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

          Comparator<? super E> comparator, int n, E... contents) {
        if (n == 0) {
          return emptySet(comparator);
        }
        checkElementsNotNull(contents, n);
        Arrays.sort(contents, 0, n, comparator);
        int uniques = 1;
        for (int i = 1; i < n; i++) {
          E cur = contents[i];
          E prev = contents[uniques - 1];
          if (comparator.compare(cur, prev) != 0) {
    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)
  7. android/guava/src/com/google/common/collect/Multisets.java

        // TODO(cpovirk): Consider storing an Entry<?> instead of Entry<E>.
        Entry<E>[] entries = (Entry<E>[]) multiset.entrySet().toArray((Entry<E>[]) new Entry<?>[0]);
        Arrays.sort(entries, DecreasingCount.INSTANCE);
        return ImmutableMultiset.copyFromEntries(Arrays.asList(entries));
      }
    
      private static final class DecreasingCount implements Comparator<Entry<?>> {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Iterables.java

       * will not be de-duplicated.
       *
       * <p>Callers must ensure that the source {@code iterables} are in non-descending order as this
       * method does not sort its input.
       *
       * <p>For any equivalent elements across all {@code iterables}, it is undefined which element is
       * returned first.
       *
       * @since 11.0
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 42.8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableMap.java

       * the same order. If you want a different order, consider using {@link ImmutableSortedMap} to
       * sort by keys, or call {@link #orderEntriesByValue(Comparator)}, which changes this builder to
       * sort entries by value.
       *
       * <p>Builder instances can be reused - it is safe to call {@link #buildOrThrow} multiple times to
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableRangeMap.java

         * builder.
         *
         * @throws IllegalArgumentException if any two ranges inserted into this builder overlap
         */
        public ImmutableRangeMap<K, V> build() {
          Collections.sort(entries, Range.<K>rangeLexOrdering().onKeys());
          ImmutableList.Builder<Range<K>> rangesBuilder = new ImmutableList.Builder<>(entries.size());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 14.5K bytes
    - Viewed (0)
Back to top