Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for openClosed (0.08 sec)

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

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

        // overlap above
        assertEquals(Range.closed(6, 8), range.intersection(Range.closed(6, 10)));
    
        // adjacent above
        assertEquals(Range.openClosed(8, 8), range.intersection(Range.openClosed(8, 10)));
    
        // separate above
        expected =
            assertThrows(
                IllegalArgumentException.class, () -> range.intersection(Range.closed(10, 12)));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/ContiguousSetTest.java

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

              .add(Range.closed(2, 4))
              .add(Range.open(6, 7))
              .add(Range.closedOpen(8, 10))
              .add(Range.openClosed(15, 17))
              .build();
    
      private static final ImmutableRangeSet<Integer> RANGE_SET_TWO =
          ImmutableRangeSet.<Integer>builder()
              .add(Range.openClosed(0, 3))
              .add(Range.closed(5, 8))
              .add(Range.closedOpen(12, 15))
              .add(Range.open(19, 20))
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/TreeRangeMapTest.java

        assertEquals(
            ImmutableMap.of(Range.closedOpen(5, 7), 1, Range.openClosed(9, 10), 2),
            sub.asMapOfRanges());
        assertEquals(
            ImmutableMap.of(Range.open(3, 7), 1, Range.openClosed(9, 10), 2, Range.closed(12, 16), 3),
            rangeMap.asMapOfRanges());
    
        sub.remove(Range.closed(3, 9));
        assertEquals(ImmutableMap.of(Range.openClosed(9, 10), 2), sub.asMapOfRanges());
        assertEquals(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sun Oct 06 13:04:03 UTC 2024
    - 29.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/TreeRangeSetTest.java

            queryBuilder.add(Range.upTo(i, boundType));
            queryBuilder.add(Range.downTo(i, boundType));
          }
          queryBuilder.add(Range.singleton(i));
          queryBuilder.add(Range.openClosed(i, i));
          queryBuilder.add(Range.closedOpen(i, i));
    
          for (BoundType lowerBoundType : BoundType.values()) {
            for (int j = i + 1; j <= MAX_BOUND; j++) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/SetsTest.java

        assertEquals(set, Sets.subSet(set, Range.openClosed(0, 12)));
        assertEquals(ImmutableSortedSet.of(2, 4), Sets.subSet(set, Range.openClosed(0, 4)));
        assertEquals(ImmutableSortedSet.of(4, 6), Sets.subSet(set, Range.openClosed(2, 6)));
        assertEquals(ImmutableSortedSet.of(4, 6), Sets.subSet(set, Range.openClosed(3, 7)));
        assertEquals(empty, Sets.subSet(set, Range.openClosed(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)
  8. android/guava/src/com/google/common/collect/Range.java

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

     * <tr><td>{@code [a..b]}  <td>{@code {x | a <= x <= b}}<td>{@link Range#closed closed}
     * <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}
    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/RangeSet.java

     * rangeSet.add(Range.closedOpen(11, 15)); // disconnected range; {[1, 10], [11, 15)}
     * rangeSet.add(Range.closedOpen(15, 20)); // connected range; {[1, 10], [11, 20)}
     * rangeSet.add(Range.openClosed(0, 0)); // empty range; {[1, 10], [11, 20)}
     * rangeSet.remove(Range.open(5, 10)); // splits [1, 10]; {[1, 5], [10, 10], [11, 20)}
     * }</pre>
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 10.2K bytes
    - Viewed (0)
Back to top