presto-spi/src/main/java/io/prestosql/spi/predicate/Range.java/Range/contains
class Range:    public boolean contains(Range other)
    {
        checkTypeCompatibility(other);
        return this.getLow().compareTo(other.getLow()) <= 0 &&
                this.getHigh().compareTo(other.getHigh()) >= 0;
    }