public final boolean isBefore(final TextLocation other) { //noinspection SimplifiableIfStatement if (other == null || other.isEmpty()) { return false; } return _line < other._line || _line == other._line && _column < other._column; }
public final boolean isAfter(final TextLocation other) { return other == null || other.isEmpty() || _line > other._line || _line == other._line && _column > other._column; }
public final boolean isBefore(final TextLocation other) { //noinspection SimplifiableIfStatement if (other == null || other.isEmpty()) { return false; } return _line < other._line || _line == other._line && _column < other._column; }
public final boolean isBefore(final TextLocation other) { //noinspection SimplifiableIfStatement if (other == null || other.isEmpty()) { return false; } return _line < other._line || _line == other._line && _column < other._column; }
public final boolean isAfter(final TextLocation other) { return other == null || other.isEmpty() || _line > other._line || _line == other._line && _column > other._column; }
public final boolean isAfter(final TextLocation other) { return other == null || other.isEmpty() || _line > other._line || _line == other._line && _column > other._column; }
public final boolean isInside(final TextLocation location) { if (location == null || location.isEmpty()) { return false; } final TextLocation startLocation = getStartLocation(); final TextLocation endLocation = getEndLocation(); return startLocation != null && endLocation != null && location.compareTo(startLocation) >= 0 && location.compareTo(endLocation) <= 0; }
public final boolean isInside(final TextLocation location) { if (location == null || location.isEmpty()) { return false; } final TextLocation startLocation = getStartLocation(); final TextLocation endLocation = getEndLocation(); return startLocation != null && endLocation != null && location.compareTo(startLocation) >= 0 && location.compareTo(endLocation) <= 0; }
public final boolean contains(final TextLocation location) { if (location == null || location.isEmpty()) { return false; } final TextLocation startLocation = getStartLocation(); final TextLocation endLocation = getEndLocation(); return startLocation != null && endLocation != null && location.compareTo(startLocation) >= 0 && location.compareTo(endLocation) < 0; }
public final boolean isInside(final TextLocation location) { if (location == null || location.isEmpty()) { return false; } final TextLocation startLocation = getStartLocation(); final TextLocation endLocation = getEndLocation(); return startLocation != null && endLocation != null && location.compareTo(startLocation) >= 0 && location.compareTo(endLocation) <= 0; }
public final boolean contains(final TextLocation location) { if (location == null || location.isEmpty()) { return false; } final TextLocation startLocation = getStartLocation(); final TextLocation endLocation = getEndLocation(); return startLocation != null && endLocation != null && location.compareTo(startLocation) >= 0 && location.compareTo(endLocation) < 0; }
public final boolean contains(final TextLocation location) { if (location == null || location.isEmpty()) { return false; } final TextLocation startLocation = getStartLocation(); final TextLocation endLocation = getEndLocation(); return startLocation != null && endLocation != null && location.compareTo(startLocation) >= 0 && location.compareTo(endLocation) < 0; }