Iterates over all values and returns true if one value matches. @see #containsWithinBounds(Object)
(Object value)
| 418 | * @see #containsWithinBounds(Object) |
| 419 | */ |
| 420 | @Override |
| 421 | public boolean contains(Object value) { |
| 422 | final Iterator<Comparable> iter = new StepIterator(this, 1); |
| 423 | if (value == null) { |
| 424 | return false; |
| 425 | } |
| 426 | while (iter.hasNext()) { |
| 427 | if (DefaultTypeTransformation.compareEqual(value, iter.next())) return true; |
| 428 | } |
| 429 | return false; |
| 430 | } |
| 431 | |
| 432 | /** |
| 433 | * {@inheritDoc} |