Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ContiguousSet (0.17 sec)

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

        assertThat(Sets.<Object>cartesianProduct(x, y))
            .containsExactly(exp1, exp2, exp3, exp4)
            .inOrder();
      }
    
      public void testCartesianProductTooBig() {
        Set<Integer> set = ContiguousSet.create(Range.closed(0, 10000), DiscreteDomain.integers());
        try {
          Sets.cartesianProduct(set, set, set, set, set);
          fail("Expected IAE");
        } catch (IllegalArgumentException expected) {
        }
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 49.3K bytes
    - Viewed (0)
Back to top