mirror of
https://github.com/apache/commons-lang.git
synced 2025-02-09 19:45:01 +00:00
Javadoc.
This commit is contained in:
parent
e7c6c5b66b
commit
a3aa116d35
@ -457,7 +457,18 @@ public boolean isStartedBy(final T element) {
|
|||||||
* Fits the given element into this range by returning the given element or, if out of bounds, the range minimum if
|
* Fits the given element into this range by returning the given element or, if out of bounds, the range minimum if
|
||||||
* below, or the range maximum if above.
|
* below, or the range maximum if above.
|
||||||
* </p>
|
* </p>
|
||||||
*
|
* <pre>
|
||||||
|
* Range<Integer> range = Range.between(16, 64);
|
||||||
|
* range.fit(-9) --> 16
|
||||||
|
* range.fit(0) --> 16
|
||||||
|
* range.fit(15) --> 16
|
||||||
|
* range.fit(16) --> 16
|
||||||
|
* range.fit(17) --> 17
|
||||||
|
* ...
|
||||||
|
* range.fit(63) --> 63
|
||||||
|
* range.fit(64) --> 64
|
||||||
|
* range.fit(99) --> 64
|
||||||
|
* </pre>
|
||||||
* @param element the element to check for, not null
|
* @param element the element to check for, not null
|
||||||
* @return the minimum, the element, or the maximum depending on the element's location relative to the range
|
* @return the minimum, the element, or the maximum depending on the element's location relative to the range
|
||||||
* @since 3.10
|
* @since 3.10
|
||||||
|
Loading…
x
Reference in New Issue
Block a user