(@Nullable T t)
| 157 | } |
| 158 | |
| 159 | boolean tooHigh(@Nullable T t) { |
| 160 | if (!hasUpperBound()) { |
| 161 | return false; |
| 162 | } |
| 163 | T ubound = getUpperEndpoint(); |
| 164 | int cmp = comparator.compare(t, ubound); |
| 165 | return cmp > 0 | (cmp == 0 & getUpperBoundType() == OPEN); |
| 166 | } |
| 167 | |
| 168 | boolean contains(@Nullable T t) { |
| 169 | return !tooLow(t) && !tooHigh(t); |
no test coverage detected