Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 8 of 8 for rangeContaining (0.17 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

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

    @GwtIncompatible
    abstract class AbstractRangeSet<C extends Comparable> implements RangeSet<C> {
      AbstractRangeSet() {}
    
      @Override
      public boolean contains(C value) {
        return rangeContaining(value) != null;
      }
    
      @Override
      public abstract @Nullable Range<C> rangeContaining(C value);
    
      @Override
      public boolean isEmpty() {
        return asRanges().isEmpty();
      }
    
      @Override
      public void add(Range<C> range) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/collect/AbstractRangeSet.java

    @GwtIncompatible
    abstract class AbstractRangeSet<C extends Comparable> implements RangeSet<C> {
      AbstractRangeSet() {}
    
      @Override
      public boolean contains(C value) {
        return rangeContaining(value) != null;
      }
    
      @Override
      public abstract @Nullable Range<C> rangeContaining(C value);
    
      @Override
      public boolean isEmpty() {
        return asRanges().isEmpty();
      }
    
      @Override
      public void add(Range<C> range) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/collect/TreeRangeSet.java

          }
          return false;
        }
    
        @Override
        public @Nullable Range<C> rangeContaining(C value) {
          if (!restriction.contains(value)) {
            return null;
          }
          Range<C> result = TreeRangeSet.this.rangeContaining(value);
          return (result == null) ? null : result.intersection(restriction);
        }
    
        @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 32.3K bytes
    - Click Count (0)
  4. android/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
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 17 20:26:29 GMT 2025
    - 9.8K bytes
    - Click Count (0)
  5. 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
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 17 20:26:29 GMT 2025
    - 10.1K bytes
    - Click Count (0)
  6. 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,
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:45:58 GMT 2026
    - 27.5K bytes
    - Click Count (0)
  7. 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,
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:45:58 GMT 2026
    - 27.4K bytes
    - Click Count (0)
  8. 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() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 24.4K bytes
    - Click Count (0)
Back to Top