Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 24 for reverseOrder (0.06 sec)

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

        assertEquals("[bar, foo x 2]", multiset.toString());
      }
    
      public void testCreateWithComparator() {
        Multiset<String> multiset = TreeMultiset.create(Collections.reverseOrder());
        multiset.add("foo", 2);
        multiset.add("bar");
        assertEquals(3, multiset.size());
        assertEquals(2, multiset.count("foo"));
        assertEquals("[foo x 2, bar]", multiset.toString());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. guava/src/com/google/common/collect/ImmutableSortedSet.java

       * Returns a builder that creates immutable sorted sets whose elements are ordered by the reverse
       * of their natural ordering.
       */
      public static <E extends Comparable<?>> Builder<E> reverseOrder() {
        return new Builder<>(Collections.reverseOrder());
      }
    
      /**
       * Returns a builder that creates immutable sorted sets whose elements are ordered by their
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/TreeMultisetTest.java

        assertEquals("[bar, foo x 2]", multiset.toString());
      }
    
      public void testCreateWithComparator() {
        Multiset<String> multiset = TreeMultiset.create(Collections.reverseOrder());
        multiset.add("foo", 2);
        multiset.add("bar");
        assertEquals(3, multiset.size());
        assertEquals(2, multiset.count("foo"));
        assertEquals("[foo x 2, bar]", multiset.toString());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

       * Returns a builder that creates immutable sorted sets whose elements are ordered by the reverse
       * of their natural ordering.
       */
      public static <E extends Comparable<?>> Builder<E> reverseOrder() {
        return new Builder<>(Collections.reverseOrder());
      }
    
      /**
       * Returns a builder that creates immutable sorted sets whose elements are ordered by their
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  8. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedSet.java

        return tailSet(fromElement);
      }
    
      public static <E> Builder<E> orderedBy(Comparator<E> comparator) {
        return new Builder<E>(comparator);
      }
    
      public static <E extends Comparable<?>> Builder<E> reverseOrder() {
        return new Builder<E>(Ordering.natural().reverse());
      }
    
      public static <E extends Comparable<?>> Builder<E> naturalOrder() {
        return new Builder<E>(Ordering.natural());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Aug 19 16:21:24 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  9. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedMap.java

      }
    
      public static <K, V> Builder<K, V> orderedBy(Comparator<K> comparator) {
        return new Builder<K, V>(comparator);
      }
    
      public static <K extends Comparable<?>, V> Builder<K, V> reverseOrder() {
        return new Builder<K, V>(Ordering.natural().reverse());
      }
    
      public static final class Builder<K, V> extends ImmutableMap.Builder<K, V> {
        private final Comparator<? super K> comparator;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 27 19:19:19 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Ordering.java

       */
      protected Ordering() {}
    
      // Instance-based factories (and any static equivalents)
    
      /**
       * Returns the reverse of this ordering; the {@code Ordering} equivalent to {@link
       * Collections#reverseOrder(Comparator)}.
       *
       * <p><b>Java 8+ users:</b> Use {@code thisComparator.reversed()} instead.
       */
      // type parameter <S> lets us avoid the extra <String> in statements like:
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.4K bytes
    - Viewed (0)
Back to top