Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testToSortedList_withComparator (0.45 sec)

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

        assertEquals(Lists.newArrayList(1, 2, 3, 4), fluent(1, 2, 3, 4).toList());
      }
    
      public void testToList_empty() {
        assertTrue(fluent().toList().isEmpty());
      }
    
      public void testToSortedList_withComparator() {
        assertEquals(
            Lists.newArrayList(4, 3, 2, 1),
            fluent(4, 1, 3, 2).toSortedList(Ordering.<Integer>natural().reverse()));
      }
    
      public void testToSortedList_withDuplicates() {
    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