MCPcopy Create free account
hub / github.com/antlr/codebuff / contains

Method contains

output/java_guava/1.4.17/Range.java:464–468  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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}

Callers 2

applyMethod · 0.95
containsAllMethod · 0.95

Calls 2

checkNotNullMethod · 0.45
isLessThanMethod · 0.45

Tested by

no test coverage detected