- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for TreeRangeSet (0.08 sec)
-
android/guava-tests/test/com/google/common/collect/TreeRangeSetTest.java
testInvariants(TreeRangeSet.create()); } public void testEmptyIntersecting() { testIntersects(TreeRangeSet.<Integer>create()); testIntersects(TreeRangeSet.<Integer>create().complement()); } public void testAllSingleRangesIntersecting() { for (Range<Integer> range : QUERY_RANGES) { TreeRangeSet<Integer> rangeSet = TreeRangeSet.create(); rangeSet.add(range);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 24.3K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableRangeSet.java
* * <p>This is essentially the same as {@code * TreeRangeSet.create(this).removeAll(other.complement())} except it returns an {@code * ImmutableRangeSet}. * * @since 21.0 */ public ImmutableRangeSet<C> intersection(RangeSet<C> other) { RangeSet<C> copy = TreeRangeSet.create(this); copy.removeAll(other.complement()); return copyOf(copy); } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 27K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableRangeSetTest.java
Range.openClosed(5, 7), Range.open(3, 4)); subsets: for (Set<Range<Integer>> subset : Sets.powerSet(ranges)) { assertEquals(TreeRangeSet.create(subset), ImmutableRangeSet.unionOf(subset)); RangeSet<Integer> mutable = TreeRangeSet.create(); ImmutableRangeSet.Builder<Integer> builder = ImmutableRangeSet.builder(); boolean anyOverlaps = false;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 02 18:21:29 UTC 2024 - 21.5K bytes - Viewed (0) -
guava/src/com/google/common/collect/RangeSet.java
* * <p>Implementations that choose to support the {@link #add(Range)} operation are required to * ignore empty ranges and coalesce connected ranges. For example: * * <pre>{@code * RangeSet<Integer> rangeSet = TreeRangeSet.create(); * rangeSet.add(Range.closed(1, 10)); // {[1, 10]} * rangeSet.add(Range.closedOpen(11, 15)); // disconnected range; {[1, 10], [11, 15)} * rangeSet.add(Range.closedOpen(15, 20)); // connected range; {[1, 10], [11, 20)}
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Feb 22 21:19:52 UTC 2024 - 10.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/BenchmarkHelpers.java
} public enum RangeSetImpl { TreeRangeSetImpl { @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);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 12.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/BenchmarkHelpers.java
} public enum RangeSetImpl { TreeRangeSetImpl { @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);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 12.4K bytes - Viewed (0)