public boolean contains(int value) {
        int bounds = getBounds();
        if ((bounds & 0x80000000) != 0) {
            return value >= (bounds & 0x3fffffff);
        } else if ((bounds & 0x40000000) != 0) {
            return value < (bounds & 0x3fffffff);
        } else {
            return (value >= (bounds >> 16)) && (value < (bounds & 0xffff));
        }
    }
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