Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testOrderedPermutationSetSizeOverflow (0.34 sec)

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

        Collection<List<Integer>> permutations =
            Collections2.orderedPermutations(list, Ordering.natural());
    
        assertPermutationsCount(105, permutations);
      }
    
      public void testOrderedPermutationSetSizeOverflow() {
        // 12 elements won't overflow
        assertEquals(
            479001600 /*12!*/,
            Collections2.orderedPermutations(newArrayList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12))
                .size());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 20.1K bytes
    - Viewed (0)
Back to top