Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for closedOpen (0.06 sec)

  1. guava/src/com/google/common/collect/RangeSet.java

     *
     * <pre>{@code
     * RangeSet<Integer> rangeSet = TreeRangeSet.create();
     * rangeSet.add(Range.closed(1, 10)); // {[1, 10]}
     * 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)}
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. android/guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java

           */
          for (int i = 0; i < elements.size() - 1; i++) {
            assertEquals(elements.get(i) + 1, (int) elements.get(i + 1));
          }
          Range<Integer> range =
              elements.isEmpty() ? Range.closedOpen(0, 0) : Range.encloseAll(elements);
          return ContiguousSet.create(range, DiscreteDomain.integers());
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java

           */
          for (int i = 0; i < elements.size() - 1; i++) {
            assertEquals(elements.get(i) + 1, (int) elements.get(i + 1));
          }
          Range<Integer> range =
              elements.isEmpty() ? Range.closedOpen(0, 0) : Range.encloseAll(elements);
          return ContiguousSet.create(range, DiscreteDomain.integers());
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 15.6K bytes
    - Viewed (0)
Back to top