Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for closedOpen (0.09 sec)

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

          final int ii = i;
          ImmutableRangeMap.Builder<Integer, Integer> builder = ImmutableRangeMap.builder();
          assertThrows(IllegalArgumentException.class, () -> builder.put(Range.closedOpen(ii, ii), 1));
          assertThrows(IllegalArgumentException.class, () -> builder.put(Range.openClosed(ii, ii), 1));
        }
      }
    
      public void testOverlapRejection() {
        for (Range<Integer> range1 : RANGES) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ContiguousSetTest.java

        assertEquals(
            Range.closedOpen(1, 4),
            ContiguousSet.create(Range.closedOpen(1, 4), integers()).range(CLOSED, OPEN));
        assertEquals(
            Range.closedOpen(1, 4),
            ContiguousSet.create(Range.open(0, 4), integers()).range(CLOSED, OPEN));
        assertEquals(
            Range.closedOpen(1, 4),
            ContiguousSet.create(Range.openClosed(0, 3), integers()).range(CLOSED, OPEN));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 19K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/TreeRangeMapTest.java

        rangeMap.put(Range.closedOpen(7, 10), 2);
        rangeMap.put(Range.closedOpen(12, 15), 2);
        rangeMap.put(Range.closedOpen(18, 19), 3);
    
        rangeMap.putCoalescing(Range.closedOpen(-5, -4), 0); // disconnected
        rangeMap.putCoalescing(Range.closedOpen(-6, -5), 0); // lower than minimum
    
        rangeMap.putCoalescing(Range.closedOpen(2, 4), 1); // between
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sun Oct 06 13:04:03 UTC 2024
    - 29.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/ContiguousSetTest.java

        assertEquals(
            Range.closedOpen(1, 4),
            ContiguousSet.create(Range.closedOpen(1, 4), integers()).range(CLOSED, OPEN));
        assertEquals(
            Range.closedOpen(1, 4),
            ContiguousSet.create(Range.open(0, 4), integers()).range(CLOSED, OPEN));
        assertEquals(
            Range.closedOpen(1, 4),
            ContiguousSet.create(Range.openClosed(0, 3), integers()).range(CLOSED, OPEN));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 19K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/TreeRangeSetTest.java

        testInvariants(rangeSet);
        assertThat(rangeSet.asRanges()).contains(Range.closedOpen(1, 6));
        assertThat(rangeSet.complement().asRanges())
            .containsExactly(Range.lessThan(1), Range.atLeast(6))
            .inOrder();
      }
    
      public void testFillHoleWithOverlap() {
        TreeRangeSet<Integer> rangeSet = TreeRangeSet.create();
        rangeSet.add(Range.closedOpen(1, 3));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/RangeTest.java

        assertEquals(Range.closedOpen(1, 5), Range.closed(1, 4).canonical(integers()));
        assertEquals(Range.closedOpen(1, 5), Range.open(0, 5).canonical(integers()));
        assertEquals(Range.closedOpen(1, 5), Range.closedOpen(1, 5).canonical(integers()));
        assertEquals(Range.closedOpen(1, 5), Range.openClosed(0, 4).canonical(integers()));
    
        assertEquals(
            Range.closedOpen(Integer.MIN_VALUE, 0),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/ImmutableRangeSetTest.java

        ImmutableRangeSet<Integer> rangeSet = ImmutableRangeSet.of(Range.closedOpen(1, 5));
    
        assertThat(rangeSet.asRanges()).contains(Range.closedOpen(1, 5));
    
        assertTrue(rangeSet.intersects(Range.closed(3, 4)));
        assertTrue(rangeSet.intersects(Range.closedOpen(0, 2)));
        assertTrue(rangeSet.intersects(Range.closedOpen(3, 7)));
        assertTrue(rangeSet.intersects(Range.greaterThan(2)));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ContiguousSet.java

       * same values contained in {@code Range.closedOpen(lower, upper)}.)
       *
       * @throws IllegalArgumentException if {@code lower} is greater than {@code upper}
       * @since 23.0
       */
      public static ContiguousSet<Integer> closedOpen(int lower, int upper) {
        return create(Range.closedOpen(lower, upper), DiscreteDomain.integers());
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ContiguousSet.java

       * same values contained in {@code Range.closedOpen(lower, upper)}.)
       *
       * @throws IllegalArgumentException if {@code lower} is greater than {@code upper}
       * @since 23.0
       */
      public static ContiguousSet<Integer> closedOpen(int lower, int upper) {
        return create(Range.closedOpen(lower, upper), DiscreteDomain.integers());
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/ImmutableRangeMapTest.java

          final int ii = i;
          ImmutableRangeMap.Builder<Integer, Integer> builder = ImmutableRangeMap.builder();
          assertThrows(IllegalArgumentException.class, () -> builder.put(Range.closedOpen(ii, ii), 1));
          assertThrows(IllegalArgumentException.class, () -> builder.put(Range.openClosed(ii, ii), 1));
        }
      }
    
      public void testOverlapRejection() {
        for (Range<Integer> range1 : RANGES) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 9.6K bytes
    - Viewed (0)
Back to top