Home
last modified time | relevance | path

Searched refs:otherRange (Results 1 – 10 of 10) sorted by relevance

/external/guava/guava/src/com/google/common/collect/
DAbstractRangeSet.java73 public boolean intersects(Range<C> otherRange) { in intersects() argument
74 return !subRangeSet(otherRange).isEmpty(); in intersects()
78 public abstract boolean encloses(Range<C> otherRange); in encloses() argument
DRange.java579 public Range<C> gap(Range<C> otherRange) { in gap() argument
590 if (lowerBound.compareTo(otherRange.upperBound) < 0 in gap()
591 && otherRange.lowerBound.compareTo(upperBound) < 0) { in gap()
593 "Ranges have a nonempty intersection: " + this + ", " + otherRange); in gap()
596 boolean isThisFirst = this.lowerBound.compareTo(otherRange.lowerBound) < 0; in gap()
597 Range<C> firstRange = isThisFirst ? this : otherRange; in gap()
598 Range<C> secondRange = isThisFirst ? otherRange : this; in gap()
DImmutableRangeSet.java151 public boolean intersects(Range<C> otherRange) { in intersects() argument
156 otherRange.lowerBound, in intersects()
161 && ranges.get(ceilingIndex).isConnected(otherRange) in intersects()
162 && !ranges.get(ceilingIndex).intersection(otherRange).isEmpty()) { in intersects()
166 && ranges.get(ceilingIndex - 1).isConnected(otherRange) in intersects()
167 && !ranges.get(ceilingIndex - 1).intersection(otherRange).isEmpty(); in intersects()
171 public boolean encloses(Range<C> otherRange) { in encloses() argument
176 otherRange.lowerBound, in encloses()
180 return index != -1 && ranges.get(index).encloses(otherRange); in encloses()
DRangeSet.java76 boolean intersects(Range<C> otherRange); in intersects() argument
82 boolean encloses(Range<C> otherRange); in encloses() argument
/external/cldr/tools/java/org/unicode/cldr/test/
DTestMetazones.java584 for (DateRange otherRange : other.contents) { in contains()
585 if (!contains(otherRange)) { in contains()
592 private boolean contains(DateRange otherRange) { in contains() argument
594 if (!range.containsAll(otherRange)) { in contains()
626 public boolean containsAll(DateRange otherRange) { in containsAll() argument
627 return startDate <= otherRange.startDate && otherRange.endDate <= endDate; in containsAll()
636 public boolean containsNone(DateRange otherRange) { in containsNone() argument
637 return startDate > otherRange.endDate || otherRange.startDate > endDate; in containsNone()
646 public boolean containsSome(DateRange otherRange) { in containsSome() argument
647 return startDate <= otherRange.endDate && otherRange.startDate <= endDate; in containsSome()
/external/guava/android/guava/src/com/google/common/collect/
DAbstractRangeSet.java97 public boolean intersects(Range<C> otherRange) { in intersects() argument
98 return !subRangeSet(otherRange).isEmpty(); in intersects()
102 public abstract boolean encloses(Range<C> otherRange); in encloses() argument
DRange.java579 public Range<C> gap(Range<C> otherRange) { in gap() argument
590 if (lowerBound.compareTo(otherRange.upperBound) < 0 in gap()
591 && otherRange.lowerBound.compareTo(upperBound) < 0) { in gap()
593 "Ranges have a nonempty intersection: " + this + ", " + otherRange); in gap()
596 boolean isThisFirst = this.lowerBound.compareTo(otherRange.lowerBound) < 0; in gap()
597 Range<C> firstRange = isThisFirst ? this : otherRange; in gap()
598 Range<C> secondRange = isThisFirst ? otherRange : this; in gap()
DImmutableRangeSet.java138 public boolean intersects(Range<C> otherRange) { in intersects() argument
143 otherRange.lowerBound, in intersects()
148 && ranges.get(ceilingIndex).isConnected(otherRange) in intersects()
149 && !ranges.get(ceilingIndex).intersection(otherRange).isEmpty()) { in intersects()
153 && ranges.get(ceilingIndex - 1).isConnected(otherRange) in intersects()
154 && !ranges.get(ceilingIndex - 1).intersection(otherRange).isEmpty(); in intersects()
158 public boolean encloses(Range<C> otherRange) { in encloses() argument
163 otherRange.lowerBound, in encloses()
167 return index != -1 && ranges.get(index).encloses(otherRange); in encloses()
DRangeSet.java75 boolean intersects(Range<C> otherRange); in intersects() argument
81 boolean encloses(Range<C> otherRange); in encloses() argument
/external/python/cpython2/Mac/Modules/cf/
D_CFmodule.c795 CFRange otherRange; in CFMutableArrayRefObj_CFArrayAppendArray() local
801 CFRange_Convert, &otherRange)) in CFMutableArrayRefObj_CFArrayAppendArray()
805 otherRange); in CFMutableArrayRefObj_CFArrayAppendArray()