Added missing @since 3.0.1 tags

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1153346 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Henri Yandell 2011-08-03 04:59:46 +00:00
parent b2c23e4697
commit 11ecc04c07
1 changed files with 3 additions and 0 deletions

View File

@ -424,6 +424,7 @@ public class ObjectUtils {
* @return T at middle position
* @throws NullPointerException if items is {@code null}
* @throws IllegalArgumentException if items is empty or contains {@code null} values
* @since 3.0.1
*/
public static <T extends Comparable<? super T>> T median(T... items) {
Validate.notEmpty(items);
@ -444,6 +445,7 @@ public class ObjectUtils {
* @return T at middle position
* @throws NullPointerException if items or comparator is {@code null}
* @throws IllegalArgumentException if items is empty or contains {@code null} values
* @since 3.0.1
*/
public static <T> T median(Comparator<T> comparator, T... items) {
Validate.notEmpty(items, "null/empty items");
@ -464,6 +466,7 @@ public class ObjectUtils {
* @param <T>
* @param items to check
* @return most populous T, {@code null} if non-unique or no items supplied
* @since 3.0.1
*/
public static <T> T mode(T... items) {
if (ArrayUtils.isNotEmpty(items)) {