@Override
    public boolean equals(final Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        final DataRange dataRange = (DataRange) o;
        return Objects.equals(locationFrom, dataRange.locationFrom) &&
                Objects.equals(charOffsetFrom, dataRange.charOffsetFrom) &&
                Objects.equals(byteOffsetFrom, dataRange.byteOffsetFrom) &&
                Objects.equals(locationTo, dataRange.locationTo) &&
                Objects.equals(charOffsetTo, dataRange.charOffsetTo) &&
                Objects.equals(byteOffsetTo, dataRange.byteOffsetTo) &&
                Objects.equals(length, dataRange.length);
    }
@return The number of chars in the range
stroom-util-shared/src/main/java/stroom/util/shared/DataRange.java