code: public boolean isContained(V value) {
  
      NlsNullPointerException.checkNotNull("value", value);
  
      Comparator<? super V> comparator = getComparator();
      int delta;
      if (this.min != null) {
        delta = comparator.compare(value, this.min);
        if (delta < 0) {
          // value < min
          return false;
        }
      }
      if (this.max != null) {
        delta = comparator.compare(value, this.max);
        if (delta > 0) {
          // value > max
          return false;
        }
      }
      return true;
    }
docs: This method determines if the given {@code value} is within this {@link Range} from {@link #getMin() minimum} to
  {@link #getMax() maximum}.
  
  @param value is the vale to check.
  @return {@code true} if contained ({@link #getMin() minimum} &lt;= {@code value} &lt;= {@link #getMax() maximum}).