Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for toSortedList (0.2 sec)

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

       * FluentIterable} in the order specified by {@code comparator}. To produce an {@code
       * ImmutableList} sorted by its natural ordering, use {@code toSortedList(Ordering.natural())}.
       *
       * <p><b>{@code Stream} equivalent:</b> {@code
       * ImmutableList.copyOf(stream.sorted(comparator).iterator())}, or pass {@link
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 24 13:42:31 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/FluentIterableTest.java

        assertEquals(
            Lists.newArrayList(4, 3, 2, 1),
            fluent(4, 1, 3, 2).toSortedList(Ordering.<Integer>natural().reverse()));
      }
    
      public void testToSortedList_withDuplicates() {
        assertEquals(
            Lists.newArrayList(4, 3, 1, 1),
            fluent(1, 4, 1, 3).toSortedList(Ordering.<Integer>natural().reverse()));
      }
    
      public void testToSet() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 30.4K bytes
    - Viewed (0)
Back to top