Moving lastIndexOfAny and indexOfAny to (CharSequence, CharSequence...) from (CharSequence, CharSequence[])
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1092824 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e00c223382
commit
7d9ade1caa
|
@ -1909,9 +1909,9 @@ public static boolean containsNone(CharSequence cs, String invalidChars) {
|
|||
* @param str the CharSequence to check, may be null
|
||||
* @param searchStrs the CharSequences to search for, may be null
|
||||
* @return the first index of any of the searchStrs in str, -1 if no match
|
||||
* @since 3.0 Changed signature from indexOfAny(String, String[]) to indexOfAny(CharSequence, CharSequence[])
|
||||
* @since 3.0 Changed signature from indexOfAny(String, String[]) to indexOfAny(CharSequence, CharSequence...)
|
||||
*/
|
||||
public static int indexOfAny(CharSequence str, CharSequence[] searchStrs) {
|
||||
public static int indexOfAny(CharSequence str, CharSequence... searchStrs) {
|
||||
if (str == null || searchStrs == null) {
|
||||
return INDEX_NOT_FOUND;
|
||||
}
|
||||
|
@ -1963,9 +1963,9 @@ public static int indexOfAny(CharSequence str, CharSequence[] searchStrs) {
|
|||
* @param str the CharSequence to check, may be null
|
||||
* @param searchStrs the CharSequences to search for, may be null
|
||||
* @return the last index of any of the CharSequences, -1 if no match
|
||||
* @since 3.0 Changed signature from lastIndexOfAny(String, String[]) to lastIndexOfAny(CharSequence, CharSequence[])
|
||||
* @since 3.0 Changed signature from lastIndexOfAny(String, String[]) to lastIndexOfAny(CharSequence, CharSequence)
|
||||
*/
|
||||
public static int lastIndexOfAny(CharSequence str, CharSequence[] searchStrs) {
|
||||
public static int lastIndexOfAny(CharSequence str, CharSequence... searchStrs) {
|
||||
if (str == null || searchStrs == null) {
|
||||
return INDEX_NOT_FOUND;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue