Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testPartitionRandomAccessFalse (0.13 sec)

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

        assertTrue(
            "partition[1] should be RandomAccess, but not: " + partitions.get(1).getClass(),
            partitions.get(1) instanceof RandomAccess);
      }
    
      public void testPartitionRandomAccessFalse() {
        List<Integer> source = new LinkedList<>(asList(1, 2, 3));
        List<List<Integer>> partitions = partition(source, 2);
        assertFalse(partitions instanceof RandomAccess);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 35.4K bytes
    - Viewed (0)
Back to top