Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for closedOpen (0.1 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/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)
  8. guava-tests/test/com/google/common/collect/SetsTest.java

        assertEquals(set, Sets.subSet(set, Range.closedOpen(0, 12)));
        assertEquals(ImmutableSortedSet.of(2), Sets.subSet(set, Range.closedOpen(0, 4)));
        assertEquals(ImmutableSortedSet.of(2, 4), Sets.subSet(set, Range.closedOpen(2, 6)));
        assertEquals(ImmutableSortedSet.of(4, 6), Sets.subSet(set, Range.closedOpen(3, 7)));
        assertEquals(empty, Sets.subSet(set, Range.closedOpen(20, 30)));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 48.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Range.java

     * <tr><td>{@code (a..b]}  <td>{@code {x | a < x <= b}} <td>{@link Range#openClosed openClosed}
     * <tr><td>{@code [a..b)}  <td>{@code {x | a <= x < b}} <td>{@link Range#closedOpen closedOpen}
     * <tr><td>{@code (a..+∞)} <td>{@code {x | x > a}}      <td>{@link Range#greaterThan greaterThan}
     * <tr><td>{@code [a..+∞)} <td>{@code {x | x >= a}}     <td>{@link Range#atLeast atLeast}
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/Range.java

     * <tr><td>{@code (a..b]}  <td>{@code {x | a < x <= b}} <td>{@link Range#openClosed openClosed}
     * <tr><td>{@code [a..b)}  <td>{@code {x | a <= x < b}} <td>{@link Range#closedOpen closedOpen}
     * <tr><td>{@code (a..+∞)} <td>{@code {x | x > a}}      <td>{@link Range#greaterThan greaterThan}
     * <tr><td>{@code [a..+∞)} <td>{@code {x | x >= a}}     <td>{@link Range#atLeast atLeast}
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 27.8K bytes
    - Viewed (0)
Back to top