docs: revise javadoc to describe char varargs correctly

This commit is contained in:
Capt. Cutlass 2024-10-31 13:16:42 -04:00
parent c330b890b9
commit 14272e5bb6
No known key found for this signature in database
GPG Key ID: 4150FC239211466F
1 changed files with 21 additions and 21 deletions

View File

@ -1191,13 +1191,13 @@ public class StringUtils {
* An empty CharSequence (length()=0) always returns true.</p>
*
* <pre>
* StringUtils.containsNone(null, *) = true
* StringUtils.containsNone(*, null) = true
* StringUtils.containsNone("", *) = true
* StringUtils.containsNone("ab", '') = true
* StringUtils.containsNone("abab", 'xyz') = true
* StringUtils.containsNone("ab1", 'xyz') = true
* StringUtils.containsNone("abz", 'xyz') = false
* StringUtils.containsNone(null, *) = true
* StringUtils.containsNone("", *) = true
* StringUtils.containsNone(*, null) = true
* StringUtils.containsNone(*, []) = true
* StringUtils.containsNone("abc", ['x', 'y']) = true
* StringUtils.containsNone("abc", ['1', '.']) = true
* StringUtils.containsNone("abc", ['b', 'z']) = false
* </pre>
*
* @param cs the CharSequence to check, may be null
@ -1244,12 +1244,12 @@ public class StringUtils {
*
* <pre>
* StringUtils.containsNone(null, *) = true
* StringUtils.containsNone(*, null) = true
* StringUtils.containsNone("", *) = true
* StringUtils.containsNone("ab", "") = true
* StringUtils.containsNone("abab", "xyz") = true
* StringUtils.containsNone("ab1", "xyz") = true
* StringUtils.containsNone("abz", "xyz") = false
* StringUtils.containsNone(*, null) = true
* StringUtils.containsNone(*, "") = true
* StringUtils.containsNone("abc", "xy") = true
* StringUtils.containsNone("abc", "1.") = true
* StringUtils.containsNone("abc", "bz") = false
* </pre>
*
* @param cs the CharSequence to check, may be null
@ -1273,13 +1273,13 @@ public class StringUtils {
* An empty CharSequence (length()=0) always returns {@code true}.</p>
*
* <pre>
* StringUtils.containsOnly(null, *) = false
* StringUtils.containsOnly(*, null) = false
* StringUtils.containsOnly("", *) = true
* StringUtils.containsOnly("ab", '') = false
* StringUtils.containsOnly("abab", 'abc') = true
* StringUtils.containsOnly("ab1", 'abc') = false
* StringUtils.containsOnly("abz", 'abc') = false
* StringUtils.containsOnly(null, *) = false
* StringUtils.containsOnly("", *) = true
* StringUtils.containsOnly(*, null) = false
* StringUtils.containsOnly(*, []) = false
* StringUtils.containsOnly("abab", ['a', 'b', 'c']) = true
* StringUtils.containsOnly("ab1", ['a', 'b', 'c']) = false
* StringUtils.containsOnly("abz", ['a', 'b', 'c']) = false
* </pre>
*
* @param cs the String to check, may be null
@ -1310,9 +1310,9 @@ public class StringUtils {
*
* <pre>
* StringUtils.containsOnly(null, *) = false
* StringUtils.containsOnly(*, null) = false
* StringUtils.containsOnly("", *) = true
* StringUtils.containsOnly("ab", "") = false
* StringUtils.containsOnly(*, null) = false
* StringUtils.containsOnly(*, "") = false
* StringUtils.containsOnly("abab", "abc") = true
* StringUtils.containsOnly("ab1", "abc") = false
* StringUtils.containsOnly("abz", "abc") = false