Search Options

Display Count
Sort
Preferred Language
Advanced Search

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

  1. 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);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 35.4K bytes
    - Click Count (0)
Back to Top