code: 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);
    }
docs: 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}.