android/guava/src/com/google/common/collect/Range.java
public boolean contains(C value) {
    checkNotNull(value);
    // let this throw CCE if there is some trickery going on
    return lowerBound.isLessThan(value) && !upperBound.isLessThan(value);
  }
public boolean contains(C value) {
    checkNotNull(value);
    // let this throw CCE if there is some trickery going on
    return lowerBound.isLessThan(value) && !upperBound.isLessThan(value);
  }
public boolean contains ( C value ) { checkNotNull ( value ) ; // let this throw CCE if there is some trickery going on return lowerBound . isLessThan ( value ) && ! upperBound . isLessThan ( value ) ; }
Returns {@code true} if {@code value} is within the bounds of this range. For example, on the
range {@code [0..2)}, {@code contains(1)} returns {@code true}, while {@code contains(2)}
returns {@code false}.
Returns {