Home
last modified time | relevance | path

Searched refs:rangeSet (Results 1 – 7 of 7) sorted by relevance

/external/guava/guava-tests/test/com/google/common/collect/
DTreeRangeSetTest.java99 TreeRangeSet<Integer> rangeSet, Iterable<Range<Integer>> expectedRanges) { in testRangesByLowerBounds() argument
105 NavigableMap<Cut<Integer>, Range<Integer>> rangesByLowerBound = rangeSet.rangesByLowerBound; in testRangesByLowerBounds()
129 public void testEnclosing(RangeSet<Integer> rangeSet) { in testEnclosing() argument
132 for (Range<Integer> expectedRange : rangeSet.asRanges()) { in testEnclosing()
139 assertEquals(rangeSet + " was incorrect on encloses(" + query + ")", expectEnclose, in testEnclosing()
140 rangeSet.encloses(query)); in testEnclosing()
146 TreeRangeSet<Integer> rangeSet = TreeRangeSet.create(); in testAllSingleRangesComplementAgainstRemove() local
147 rangeSet.add(range); in testAllSingleRangesComplementAgainstRemove()
153 assertEquals(complement, rangeSet.complement()); in testAllSingleRangesComplementAgainstRemove()
154 assertThat(rangeSet.complement().asRanges()) in testAllSingleRangesComplementAgainstRemove()
[all …]
DImmutableRangeSetTest.java144 ImmutableRangeSet<Integer> rangeSet = ImmutableRangeSet.of(); in testEmpty() local
146 assertThat(rangeSet.asRanges()).isEmpty(); in testEmpty()
147 assertEquals(ImmutableRangeSet.<Integer>all(), rangeSet.complement()); in testEmpty()
148 assertFalse(rangeSet.contains(0)); in testEmpty()
149 assertFalse(rangeSet.encloses(Range.singleton(0))); in testEmpty()
150 assertTrue(rangeSet.enclosesAll(rangeSet)); in testEmpty()
151 assertTrue(rangeSet.isEmpty()); in testEmpty()
155 ImmutableRangeSet<Integer> rangeSet = ImmutableRangeSet.all(); in testAll() local
157 assertThat(rangeSet.asRanges()).has().item(Range.<Integer>all()); in testAll()
158 assertTrue(rangeSet.contains(0)); in testAll()
[all …]
DAbstractRangeSetTest.java32 public static void testInvariants(RangeSet<?> rangeSet) { in testInvariants() argument
33 testInvariantsInternal(rangeSet); in testInvariants()
34 testInvariantsInternal(rangeSet.complement()); in testInvariants()
37 private static <C extends Comparable> void testInvariantsInternal(RangeSet<C> rangeSet) { in testInvariantsInternal() argument
38 assertEquals(rangeSet.asRanges().isEmpty(), rangeSet.isEmpty()); in testInvariantsInternal()
39 assertEquals(!rangeSet.asRanges().iterator().hasNext(), rangeSet.isEmpty()); in testInvariantsInternal()
41 List<Range<C>> asRanges = ImmutableList.copyOf(rangeSet.asRanges()); in testInvariantsInternal()
55 Iterator<Range<C>> itr = rangeSet.asRanges().iterator(); in testInvariantsInternal()
65 Range<C> span = rangeSet.span(); in testInvariantsInternal()
/external/guava/guava/src/com/google/common/collect/
DImmutableRangeSet.java86 public static <C extends Comparable> ImmutableRangeSet<C> copyOf(RangeSet<C> rangeSet) { in copyOf() argument
87 checkNotNull(rangeSet); in copyOf()
88 if (rangeSet.isEmpty()) { in copyOf()
90 } else if (rangeSet.encloses(Range.<C>all())) { in copyOf()
94 if (rangeSet instanceof ImmutableRangeSet) { in copyOf()
95 ImmutableRangeSet<C> immutableRangeSet = (ImmutableRangeSet<C>) rangeSet; in copyOf()
100 return new ImmutableRangeSet<C>(ImmutableList.copyOf(rangeSet.asRanges())); in copyOf()
546 private final RangeSet<C> rangeSet;
549 this.rangeSet = TreeRangeSet.create();
562 } else if (!rangeSet.complement().encloses(range)) {
[all …]
DImmutableRangeMap.java223 RegularImmutableSortedSet<Range<K>> rangeSet = in asMapOfRanges() local
225 return new RegularImmutableSortedMap<Range<K>, V>(rangeSet, values); in asMapOfRanges()
DTreeRangeSet.java60 public static <C extends Comparable<?>> TreeRangeSet<C> create(RangeSet<C> rangeSet) { in create() argument
62 result.addAll(rangeSet); in create()
/external/dng_sdk/source/
Ddng_image_writer.cpp6268 range_tag_set rangeSet (rawIFD, negative); in WriteDNG() local