Searched refs:otherRange (Results 1 – 10 of 10) sorted by relevance
73 public boolean intersects(Range<C> otherRange) { in intersects() argument74 return !subRangeSet(otherRange).isEmpty(); in intersects()78 public abstract boolean encloses(Range<C> otherRange); in encloses() argument
579 public Range<C> gap(Range<C> otherRange) { in gap() argument590 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()
151 public boolean intersects(Range<C> otherRange) { in intersects() argument156 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() argument176 otherRange.lowerBound, in encloses()180 return index != -1 && ranges.get(index).encloses(otherRange); in encloses()
76 boolean intersects(Range<C> otherRange); in intersects() argument82 boolean encloses(Range<C> otherRange); in encloses() argument
584 for (DateRange otherRange : other.contents) { in contains()585 if (!contains(otherRange)) { in contains()592 private boolean contains(DateRange otherRange) { in contains() argument594 if (!range.containsAll(otherRange)) { in contains()626 public boolean containsAll(DateRange otherRange) { in containsAll() argument627 return startDate <= otherRange.startDate && otherRange.endDate <= endDate; in containsAll()636 public boolean containsNone(DateRange otherRange) { in containsNone() argument637 return startDate > otherRange.endDate || otherRange.startDate > endDate; in containsNone()646 public boolean containsSome(DateRange otherRange) { in containsSome() argument647 return startDate <= otherRange.endDate && otherRange.startDate <= endDate; in containsSome()
97 public boolean intersects(Range<C> otherRange) { in intersects() argument98 return !subRangeSet(otherRange).isEmpty(); in intersects()102 public abstract boolean encloses(Range<C> otherRange); in encloses() argument
138 public boolean intersects(Range<C> otherRange) { in intersects() argument143 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() argument163 otherRange.lowerBound, in encloses()167 return index != -1 && ranges.get(index).encloses(otherRange); in encloses()
75 boolean intersects(Range<C> otherRange); in intersects() argument81 boolean encloses(Range<C> otherRange); in encloses() argument
795 CFRange otherRange; in CFMutableArrayRefObj_CFArrayAppendArray() local801 CFRange_Convert, &otherRange)) in CFMutableArrayRefObj_CFArrayAppendArray()805 otherRange); in CFMutableArrayRefObj_CFArrayAppendArray()