mirror of
https://github.com/apache/commons-lang.git
synced 2025-02-07 18:48:39 +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}
|
||||
* 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>
|
||||
* 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.
|
||||
* If any value is {@code null} or the array is {@code null}
|
||||
* then {@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>
|
||||
* Checks if all values in the array are not {@code nulls}.
|
||||
*
|
||||
* <p>
|
||||
* If any value is {@code null} or the array is {@code null} then
|
||||
* {@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>
|
||||
* ObjectUtils.allNotNull(*) = true
|
||||
|
Loading…
x
Reference in New Issue
Block a user