mirror of
https://github.com/apache/commons-lang.git
synced 2025-02-14 14:05:17 +00:00
Better JavaDoc for ObjectUtils.anyNotNull and ObjectUtils.allNotNull
This commit is contained in:
parent
0bdeb204c8
commit
9e2bcbf520
@ -129,9 +129,12 @@ public static <T> T firstNonNull(final T... values) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>Checks if any value in the array is not {@code null}.
|
* Checks if any value in the given array is not {@code null}.
|
||||||
|
*
|
||||||
|
* <p>
|
||||||
* If all the values are {@code null} or the array is {@code null}
|
* If all the values are {@code null} or the array is {@code null}
|
||||||
* or empty then {@code false} is returned. Otherwise {@code true} is returned.</p>
|
* or empty then {@code false} is returned. Otherwise {@code true} is returned.
|
||||||
|
* </p>
|
||||||
*
|
*
|
||||||
* <pre>
|
* <pre>
|
||||||
* ObjectUtils.anyNotNull(*) = true
|
* ObjectUtils.anyNotNull(*) = true
|
||||||
@ -153,11 +156,14 @@ public static boolean anyNotNull(final Object... values) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>Checks if all values in the array are not {@code null}s.
|
* Checks if all values in the array are not {@code nulls}.
|
||||||
* If any value is {@code null} or the array is {@code null}
|
*
|
||||||
* then {@code false} is returned.
|
* <p>
|
||||||
* If all elements in array are not {@code null} or the array is empty (contains no elements)
|
* If any value is {@code null} or the array is {@code null} then
|
||||||
* {@code true} is returned.</p>
|
* {@code false} is returned. If all elements in array are not
|
||||||
|
* {@code null} or the array is empty (contains no elements) {@code true}
|
||||||
|
* is returned.
|
||||||
|
* </p>
|
||||||
*
|
*
|
||||||
* <pre>
|
* <pre>
|
||||||
* ObjectUtils.allNotNull(*) = true
|
* ObjectUtils.allNotNull(*) = true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user