@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        IntervalWithBounds that = (IntervalWithBounds) o;
        return getInterval() == that.getInterval() && getBounds() == that.getBounds();
    }
Checks if a value is contained within the specified bounds.
@param value Value to check against
@return true if value is contained within the specified bounds
predicate-search/src/main/java/com/yahoo/search/predicate/index/IntervalWithBounds.java