Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for RangeSet (0.14 sec)

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

        assertTrue(rangeSet.intersects(Range.greaterThan(1)));
        assertFalse(rangeSet.intersects(Range.greaterThan(3)));
    
        assertTrue(rangeSet.encloses(Range.closed(2, 3)));
        assertTrue(rangeSet.encloses(Range.lessThan(1)));
        assertFalse(rangeSet.encloses(Range.closedOpen(1, 5)));
    
        assertTrue(rangeSet.contains(3));
        assertTrue(rangeSet.contains(0));
    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

        assertThat(rangeSet.asRanges()).isEmpty();
        assertThat(rangeSet.complement().asRanges()).containsExactly(Range.<Integer>all());
      }
    
      public void testFillHoleExactly() {
        TreeRangeSet<Integer> rangeSet = TreeRangeSet.create();
        rangeSet.add(Range.closedOpen(1, 3));
        rangeSet.add(Range.closedOpen(4, 6));
        rangeSet.add(Range.closedOpen(3, 4));
        testInvariants(rangeSet);
    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. guava/src/com/google/common/collect/ImmutableRangeSet.java

      }
    
      /** Returns an immutable copy of the specified {@code RangeSet}. */
      public static <C extends Comparable> ImmutableRangeSet<C> copyOf(RangeSet<C> rangeSet) {
        checkNotNull(rangeSet);
        if (rangeSet.isEmpty()) {
          return of();
        } else if (rangeSet.encloses(Range.<C>all())) {
          return all();
        }
    
        if (rangeSet instanceof ImmutableRangeSet) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 27K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableRangeMap.java

        }
        RegularImmutableSortedSet<Range<K>> rangeSet =
            new RegularImmutableSortedSet<>(ranges, Range.<K>rangeLexOrdering());
        return new ImmutableSortedMap<>(rangeSet, values);
      }
    
      @Override
      public ImmutableMap<Range<K>, V> asDescendingMapOfRanges() {
        if (ranges.isEmpty()) {
          return ImmutableMap.of();
        }
        RegularImmutableSortedSet<Range<K>> rangeSet =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/BenchmarkHelpers.java

          @Override
          <K extends Comparable<K>> RangeSet<K> create(RangeSet<K> contents) {
            return TreeRangeSet.create(contents);
          }
        },
        ImmutableRangeSetImpl {
          @Override
          <K extends Comparable<K>> RangeSet<K> create(RangeSet<K> contents) {
            return ImmutableRangeSet.copyOf(contents);
          }
        };
    
        abstract <K extends Comparable<K>> RangeSet<K> create(RangeSet<K> contents);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/BenchmarkHelpers.java

          @Override
          <K extends Comparable<K>> RangeSet<K> create(RangeSet<K> contents) {
            return TreeRangeSet.create(contents);
          }
        },
        ImmutableRangeSetImpl {
          @Override
          <K extends Comparable<K>> RangeSet<K> create(RangeSet<K> contents) {
            return ImmutableRangeSet.copyOf(contents);
          }
        };
    
        abstract <K extends Comparable<K>> RangeSet<K> create(RangeSet<K> contents);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.4K bytes
    - Viewed (0)
Back to top