Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 174 for natural (0.05 sec)

  1. guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java

        }
    
        /** Sorts the elements in reverse natural order. */
        @SuppressWarnings("CanIgnoreReturnValueSuggester") // see ImmutableSortedSetExplicitComparator
        @Override
        public List<Integer> order(List<Integer> insertionOrder) {
          sort(insertionOrder, Ordering.<Integer>natural().reverse());
          return insertionOrder;
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/SortedMapGenerators.java

            builder.put(elements[i], i);
          }
          return builder.build().keySet().asList();
        }
    
        @Override
        public List<String> order(List<String> insertionOrder) {
          return Ordering.<String>natural().sortedCopy(insertionOrder);
        }
      }
    
      public static class ImmutableSortedMapValueListGenerator extends TestStringListGenerator {
        @Override
        protected List<String> create(String[] elements) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ForwardingSortedMultisetTest.java

                      }
    
                      @Override
                      public List<String> order(List<String> insertionOrder) {
                        return Ordering.natural().sortedCopy(insertionOrder);
                      }
                    })
                .named("ForwardingSortedMultiset with standard impls")
                .withFeatures(
                    CollectionSize.ANY,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/Helpers.java

        sort(insertionOrder, entryComparator(keyComparator));
        return insertionOrder;
      }
    
      /**
       * Compares strings in natural order except that null comes immediately before a given value. This
       * works better than Ordering.natural().nullsFirst() because, if null comes before all other
       * values, it lies outside the submap/submultiset ranges we test, and the variety of tests that
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 17.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/AbstractSortedSetMultimap.java

       */
      @Override
      public Map<K, Collection<V>> asMap() {
        return super.asMap();
      }
    
      /**
       * {@inheritDoc}
       *
       * <p>Consequently, the values do not follow their natural ordering or the ordering of the value
       * comparator.
       */
      @Override
      public Collection<V> values() {
        return super.values();
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Mar 20 13:05:10 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

     * @author Alexei Stolboushkin
     * @author Sverre Sundsdal
     */
    @GwtCompatible
    @NullMarked
    public class MinMaxPriorityQueueTest extends TestCase {
      private static final Ordering<Integer> SOME_COMPARATOR = Ordering.<Integer>natural().reverse();
    
      @J2ktIncompatible
      @GwtIncompatible // suite
      @AndroidIncompatible // test-suite builders
      public static Test suite() {
        TestSuite suite = new TestSuite();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 36K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/MultimapBuilder.java

                  new LinkedHashSetSupplier<V>(expectedValuesPerKey));
            }
          };
        }
    
        /** Uses a naturally-ordered {@link TreeSet} to store value collections. */
        @SuppressWarnings("rawtypes")
        public SortedSetMultimapBuilder<K0, Comparable> treeSetValues() {
          return treeSetValues(Ordering.natural());
        }
    
        /**
         * Uses a {@link TreeSet} ordered by the specified comparator to store value collections.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 18K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/MultimapBuilder.java

                  new LinkedHashSetSupplier<V>(expectedValuesPerKey));
            }
          };
        }
    
        /** Uses a naturally-ordered {@link TreeSet} to store value collections. */
        @SuppressWarnings("rawtypes")
        public SortedSetMultimapBuilder<K0, Comparable> treeSetValues() {
          return treeSetValues(Ordering.natural());
        }
    
        /**
         * Uses a {@link TreeSet} ordered by the specified comparator to store value collections.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 18K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/ForwardingSortedMapTest.java

                        }
                        return new StandardImplForwardingSortedMap<>(map);
                      }
                    })
                .named(
                    "ForwardingSortedMap[SafeTreeMap] with natural comparator and "
                        + "standard implementations")
                .withFeatures(
                    CollectionSize.ANY,
                    CollectionFeature.KNOWN_ORDER,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 20:34:52 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/SortedSetMultimap.java

       */
      @Override
      Map<K, Collection<V>> asMap();
    
      /**
       * Returns the comparator that orders the multimap values, with {@code null} indicating that
       * natural ordering is used.
       */
      @Nullable Comparator<? super V> valueComparator();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 5.2K bytes
    - Viewed (0)
Back to top