Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for subRangeSet (1.93 sec)

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

                  }
                }
                ImmutableRangeSet<Integer> subRangeSet = rangeSet.subRangeSet(subRange);
                assertEquals(expected, subRangeSet);
                assertEquals(expected.asRanges(), subRangeSet.asRanges());
                if (!expected.isEmpty()) {
                  assertEquals(expected.span(), subRangeSet.span());
                }
                for (int i = -3; i <= 3; i++) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/TreeRangeSetTest.java

              testViewAgainstExpected(
                  expectedSubRangeSet(rangeSet, subRange), rangeSet.subRangeSet(subRange));
            }
          }
        }
      }
    
      public void testSubRangeSetAdd() {
        TreeRangeSet<Integer> set = TreeRangeSet.create();
        Range<Integer> range = Range.closedOpen(0, 5);
        set.subRangeSet(range).add(range);
      }
    
      public void testSubRangeSetReplaceAdd() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/AbstractRangeSet.java

      public void removeAll(Iterable<Range<C>> ranges) {
        for (Range<C> range : ranges) {
          remove(range);
        }
      }
    
      @Override
      public boolean intersects(Range<C> otherRange) {
        return !subRangeSet(otherRange).isEmpty();
      }
    
      @Override
      public abstract boolean encloses(Range<C> otherRange);
    
      @Override
      public boolean equals(@CheckForNull Object obj) {
        if (obj == this) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/RangeSet.java

      /**
       * 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
       * subRangeSet(otherRange)} and testing whether the resulting range set is non-empty.
       *
       * @since 20.0
       */
      boolean intersects(Range<C> otherRange);
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableRangeSet.java

              return super.writeReplace();
            }
          };
        }
      }
    
      /** Returns a view of the intersection of this range set with the given range. */
      @Override
      public ImmutableRangeSet<C> subRangeSet(Range<C> range) {
        if (!isEmpty()) {
          Range<C> span = span();
          if (range.encloses(span)) {
            return this;
          } else if (range.isConnected(span)) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 27K bytes
    - Viewed (0)
Back to top