Returns true if value is within the bounds of this range. For example, on the range [0..2), contains(1) returns true, while contains(2) returns false.
(C value)
| 462 | |
| 463 | |
| 464 | public boolean contains(C value) { |
| 465 | checkNotNull(value); |
| 466 | // let this throw CCE if there is some trickery going on |
| 467 | return lowerBound.isLessThan(value) && !upperBound.isLessThan(value); |
| 468 | } |
| 469 | |
| 470 | /** |
| 471 | * @deprecated Provided only to satisfy the {@link Predicate} interface; use {@link #contains} |
no test coverage detected