isAdjacentTo method
Test whether this range is adjacent to another range. The ranges are adjacent if the end of this range is the same as the start of the other range or vice versa.
- A---][---B are adjacent for any range
- A---](---B are adjacent for any range
- A---)[---B are adjacent for any range
- A---)(---B are NOT adjacent for any range
- A---]+1[---B are adjacent for discrete range (integers, dates)
that
The other range to compare to.
Returns true if this range is adjacent to the other range, false otherwise.
Implementation
bool isAdjacentTo(Range<TYPE> that) {
return _seAdjacent(that) || _esAdjacent(that);
}