Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for reverseOrder (0.08 sec)

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

        protected SortedSet<String> create(String[] elements) {
          return ImmutableSortedSet.<String>reverseOrder().add(elements).build().descendingSet();
        }
      }
    
      public static class ImmutableSortedSetExplicitComparator extends TestStringSetGenerator {
    
        private static final Comparator<String> STRING_REVERSED = Collections.reverseOrder();
    
        @Override
        protected SortedSet<String> create(String[] elements) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/TreeBasedTableTest.java

        sortedTable = TreeBasedTable.create();
        assertSame(Ordering.natural(), sortedTable.rowComparator());
    
        sortedTable = TreeBasedTable.create(Collections.reverseOrder(), Ordering.usingToString());
        assertSame(Collections.reverseOrder(), sortedTable.rowComparator());
      }
    
      public void testColumnComparator() {
        sortedTable = TreeBasedTable.create();
        sortedTable.put("", 42, 'x');
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 15K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

        builder.put("b", 3);
        builder.put("d", 2);
        builder.put("a", 5);
        builder.orderKeysBy(Collections.reverseOrder());
        builder.orderValuesBy(Collections.reverseOrder());
        builder.put("c", 4);
        builder.put("a", 2);
        builder.put("b", 6);
        ImmutableListMultimap<String, Integer> multimap = builder.build();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java

        protected SortedSet<String> create(String[] elements) {
          return ImmutableSortedSet.<String>reverseOrder().add(elements).build().descendingSet();
        }
      }
    
      public static class ImmutableSortedSetExplicitComparator extends TestStringSetGenerator {
    
        private static final Comparator<String> STRING_REVERSED = Collections.reverseOrder();
    
        @Override
        protected SortedSet<String> create(String[] elements) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java

        assertTrue(multimap.get("a") instanceof ImmutableSortedSet);
        assertEquals(
            Collections.reverseOrder(), ((ImmutableSortedSet<Integer>) multimap.get("a")).comparator());
        assertTrue(multimap.get("x") instanceof ImmutableSortedSet);
        assertEquals(
            Collections.reverseOrder(), ((ImmutableSortedSet<Integer>) multimap.get("x")).comparator());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/ComparatorsTest.java

    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;
    import java.util.Optional;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

        builder.put("b", 3);
        builder.put("d", 2);
        builder.put("a", 5);
        builder.orderKeysBy(Collections.reverseOrder());
        builder.orderValuesBy(Collections.reverseOrder());
        builder.put("c", 4);
        builder.put("a", 2);
        builder.put("b", 6);
        ImmutableListMultimap<String, Integer> multimap = builder.build();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

                .createTestSuite());
    
        suite.addTest(
            NavigableSetTestSuiteBuilder.using(new ImmutableSortedSetReversedOrderGenerator())
                .named(ImmutableSortedSetTest.class.getName() + ", reverseOrder, iterator")
                .withFeatures(
                    CollectionSize.ANY,
                    CollectionFeature.KNOWN_ORDER,
                    CollectionFeature.SERIALIZABLE,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 46.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/SetsTest.java

            }
          };
    
      private static final List<Integer> LONGER_LIST = asList(8, 6, 7, 5, 3, 0, 9);
    
      private static final Comparator<Integer> SOME_COMPARATOR = Collections.reverseOrder();
    
      @J2ktIncompatible
      @GwtIncompatible // suite
      public static Test suite() {
        TestSuite suite = new TestSuite();
        suite.addTestSuite(SetsTest.class);
    
        suite.addTest(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 48.6K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/OrderingTest.java

      }
    
      public void testReverse() {
        Ordering<Number> reverseOrder = numberOrdering.reverse();
        testComparator(reverseOrder, Integer.MAX_VALUE, 1, 0, -1, Integer.MIN_VALUE);
    
        new EqualsTester()
            .addEqualityGroup(reverseOrder, numberOrdering.reverse())
            .addEqualityGroup(Ordering.natural().reverse())
            .addEqualityGroup(Collections.reverseOrder())
            .testEquals();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 42.6K bytes
    - Viewed (0)
Back to top