MCPcopy Index your code
hub / github.com/apache/groovy / contains

Method contains

src/main/java/groovy/lang/NumberRange.java:616–628  ·  view source on GitHub ↗

iterates over all values and returns true if one value matches. Also see containsWithinBounds.

(Object value)

Source from the content-addressed store, hash-verified

614 * Also see containsWithinBounds.
615 */
616 @Override
617 public boolean contains(Object value) {
618 if (value == null) {
619 return false;
620 }
621 final Iterator it = new StepIterator(this, stepSize);
622 while (it.hasNext()) {
623 if (compareEqual(value, it.next())) {
624 return true;
625 }
626 }
627 return false;
628 }
629
630 /**
631 * {@inheritDoc}

Callers

nothing calls this directly

Calls 3

hasNextMethod · 0.95
nextMethod · 0.95
compareEqualMethod · 0.45

Tested by

no test coverage detected