Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for rangeContaining (0.05 sec)

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

        rangeSet.remove(Range.open(5, 7));
        assertEquals(Range.closed(3, 5), rangeSet.rangeContaining(5));
        assertTrue(rangeSet.contains(5));
        assertEquals(Range.closed(7, 10), rangeSet.rangeContaining(8));
        assertTrue(rangeSet.contains(8));
        assertThat(rangeSet.rangeContaining(6)).isNull();
        assertFalse(rangeSet.contains(6));
      }
    
      public void testAddAll() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 24.4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/RangeSet.java

      /**
       * Returns the unique range from this range set that {@linkplain Range#contains contains} {@code
       * value}, or {@code null} if this range set does not contain {@code value}.
       */
      @Nullable Range<C> rangeContaining(C value);
    
      /**
       * Returns {@code true} if there exists a non-empty range enclosed by both a member range in this
       * range set and the specified range. This is equivalent to calling {@code
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableRangeSet.java

                Ordering.natural(),
                ANY_PRESENT,
                NEXT_LOWER);
        return index != -1 && ranges.get(index).encloses(otherRange);
      }
    
      @Override
      public @Nullable Range<C> rangeContaining(C value) {
        int index =
            SortedLists.binarySearch(
                ranges,
                Range::lowerBound,
                Cut.belowValue(value),
                Ordering.natural(),
                ANY_PRESENT,
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 23 17:50:58 UTC 2025
    - 27.5K bytes
    - Viewed (0)
Back to top