Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 12 for naturalOrder (0.23 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. guava-tests/test/com/google/common/collect/ComparatorsTest.java

    import static com.google.common.truth.Truth.assertThat;
    import static java.util.Arrays.asList;
    import static java.util.Collections.singleton;
    import static java.util.Comparator.comparing;
    import static java.util.Comparator.naturalOrder;
    import static java.util.Comparator.reverseOrder;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.testing.EqualsTester;
    import java.util.Collections;
    import java.util.Comparator;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Apr 12 15:07:59 GMT 2025
    - 6.4K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/collect/ComparatorsTest.java

    import static com.google.common.truth.Truth.assertThat;
    import static java.util.Arrays.asList;
    import static java.util.Collections.singleton;
    import static java.util.Comparator.comparing;
    import static java.util.Comparator.naturalOrder;
    import static java.util.Comparator.reverseOrder;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.testing.EqualsTester;
    import java.util.Collections;
    import java.util.Comparator;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Apr 12 15:07:59 GMT 2025
    - 6.4K bytes
    - Click Count (0)
  3. guava-testlib/src/com/google/common/collect/testing/google/SortedMapGenerators.java

        @Override
        public SortedMap<String, String> create(Entry<String, String>[] entries) {
          ImmutableSortedMap.Builder<String, String> builder = ImmutableSortedMap.naturalOrder();
          for (Entry<String, String> entry : entries) {
            checkNotNull(entry);
            builder.put(entry.getKey(), entry.getValue());
          }
          return builder.build();
        }
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Aug 10 19:54:19 GMT 2025
    - 4.8K bytes
    - Click Count (0)
  4. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/release/QualifiedVersion.java

            .thenComparing(v -> v.minor)
            .thenComparing(v -> v.revision)
            .thenComparing((QualifiedVersion v) -> v.qualifier, Comparator.nullsLast(Comparator.naturalOrder()));
    
        @Override
        public int compareTo(QualifiedVersion other) {
            return COMPARATOR.compare(this, other);
        }
    
        public boolean isBefore(QualifiedVersion other) {
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Wed Sep 01 06:25:29 GMT 2021
    - 5.9K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/collect/ForwardingSortedMapTest.java

                      protected SortedMap<String, String> create(Entry<String, String>[] entries) {
                        ImmutableSortedMap.Builder<String, String> builder =
                            ImmutableSortedMap.naturalOrder();
                        for (Entry<String, String> entry : entries) {
                          builder.put(entry.getKey(), entry.getValue());
                        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jul 16 20:34:52 GMT 2025
    - 7.7K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/collect/ForwardingSortedMapTest.java

                      protected SortedMap<String, String> create(Entry<String, String>[] entries) {
                        ImmutableSortedMap.Builder<String, String> builder =
                            ImmutableSortedMap.naturalOrder();
                        for (Entry<String, String> entry : entries) {
                          builder.put(entry.getKey(), entry.getValue());
                        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jul 16 20:34:52 GMT 2025
    - 7.7K bytes
    - Click Count (0)
  7. guava-tests/benchmark/com/google/common/collect/MapBenchmark.java

          }
        },
        ImmutableSorted {
          @Override
          Map<Element, Element> create(Collection<Element> keys) {
            ImmutableSortedMap.Builder<Element, Element> builder = ImmutableSortedMap.naturalOrder();
            for (Element element : keys) {
              builder.put(element, element);
            }
            return builder.build();
          }
        };
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 7.8K bytes
    - Click Count (0)
  8. guava-testlib/src/com/google/common/collect/testing/SafeTreeSet.java

     *
     * @author Louis Wasserman
     */
    @GwtIncompatible
    public final class SafeTreeSet<E> implements Serializable, NavigableSet<E> {
      @SuppressWarnings("unchecked")
      private static final Comparator<Object> NATURAL_ORDER =
          (o1, o2) -> ((Comparable<Object>) o1).compareTo(o2);
    
      private final NavigableSet<E> delegate;
    
      public SafeTreeSet() {
        this(new TreeSet<E>());
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 5.7K bytes
    - Click Count (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java

    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    public class SortedMapNavigationTester<K, V> extends AbstractMapTester<K, V> {
      @SuppressWarnings("unchecked")
      private static final Comparator<Object> NATURAL_ORDER =
          (o1, o2) -> ((Comparable<Object>) o1).compareTo(o2);
    
      private SortedMap<K, V> navigableMap;
      private Entry<K, V> a;
      private Entry<K, V> c;
    
      @Override
      public void setUp() throws Exception {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 6.1K bytes
    - Click Count (0)
  10. guava-testlib/src/com/google/common/collect/testing/SafeTreeMap.java

     *
     * @author Louis Wasserman
     */
    @GwtIncompatible
    public final class SafeTreeMap<K, V> implements Serializable, NavigableMap<K, V> {
      @SuppressWarnings("unchecked")
      private static final Comparator<Object> NATURAL_ORDER =
          (o1, o2) -> ((Comparable<Object>) o1).compareTo(o2);
    
      private final NavigableMap<K, V> delegate;
    
      public SafeTreeMap() {
        this(new TreeMap<K, V>());
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 21:06:42 GMT 2026
    - 7.4K bytes
    - Click Count (0)
Back to Top