Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for 345 (0.08 sec)

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

        assertListImmutable(result);
        assertEquals(ImmutableList.of(-1, 3, 4, 5), result);
      }
    
      public void testLeastOfIterable_simple_n_withNullElement() {
        List<@Nullable Integer> list = asList(3, 4, 5, null, -1);
        List<@Nullable Integer> result =
            Ordering.<Integer>natural().nullsLast().leastOf(list, list.size());
        assertTrue(result instanceof RandomAccess);
        assertListImmutable(result);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/OrderingTest.java

        assertListImmutable(result);
        assertEquals(ImmutableList.of(-1, 3, 4, 5), result);
      }
    
      public void testLeastOfIterable_simple_n_withNullElement() {
        List<@Nullable Integer> list = asList(3, 4, 5, null, -1);
        List<@Nullable Integer> result =
            Ordering.<Integer>natural().nullsLast().leastOf(list, list.size());
        assertTrue(result instanceof RandomAccess);
        assertListImmutable(result);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/ListsTest.java

        list.set(1, 4);
    
        List<Integer> first = iterator.next();
    
        // Changes after are too (unlike Iterables.partition)
        list.set(2, 5);
    
        assertEquals(asList(3, 4, 5), first);
    
        // Changes to a sublist also write through to the original list
        first.set(1, 6);
        assertEquals(asList(3, 6, 5), list);
      }
    
      public void testPartitionSize_1() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ListsTest.java

        list.set(1, 4);
    
        List<Integer> first = iterator.next();
    
        // Changes after are too (unlike Iterables.partition)
        list.set(2, 5);
    
        assertEquals(asList(3, 4, 5), first);
    
        // Changes to a sublist also write through to the original list
        first.set(1, 6);
        assertEquals(asList(3, 6, 5), list);
      }
    
      public void testPartitionSize_1() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35K bytes
    - Viewed (0)
Back to top