public boolean equals(Object obj) {
    if (obj == null || getClass() != obj.getClass()) return false;
    TextRegion other = (TextRegion)obj;
    return start.equals(other.start) && end.equals(other.end);
  }
A region of text spanning all characters between a start position (inclusive)
and an end position (exclusive). Positions are given as line/column pairs
(starting at 1). TextRegion instances are immutable.

@author Peter Niederwieser
spock-core/src/main/java/org/spockframework/runtime/model/TextRegion.java