Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for subRangeSet (0.1 sec)

  1. 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)
  2. 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