| Modifier and Type | Method and Description |
|---|---|
static int |
indexOf(byte[] haystack,
int fromIndex,
int maxIndex,
byte... needle)
Returns the index of the first occurrence of any byte contained in
needle in
haystack, bounded by fromIndex (inclusive) and maxIndex (exclusive). |
static int |
indexOf(char[] haystack,
int fromIndex,
int maxIndex,
char... needle)
Returns the index of the first occurrence of any character contained in
needle in
haystack, bounded by fromIndex (inclusive) and maxIndex (exclusive). |
static int |
indexOf(String haystack,
int fromIndex,
int maxIndex,
char... needle)
Returns the index of the first occurrence of any character contained in
needle in
haystack, bounded by fromIndex (inclusive) and maxIndex (exclusive). |
public static int indexOf(String haystack, int fromIndex, int maxIndex, char... needle)
needle in
haystack, bounded by fromIndex (inclusive) and maxIndex (exclusive).needle in
haystack that is greater than or equal to fromIndex and less than
maxIndex, or -1 if none of the characters occur.public static int indexOf(char[] haystack,
int fromIndex,
int maxIndex,
char... needle)
needle in
haystack, bounded by fromIndex (inclusive) and maxIndex (exclusive).needle in
haystack that is greater than or equal to fromIndex and less than
maxIndex, or -1 if none of the characters occur.public static int indexOf(byte[] haystack,
int fromIndex,
int maxIndex,
byte... needle)
needle in
haystack, bounded by fromIndex (inclusive) and maxIndex (exclusive).needle in
haystack that is greater than or equal to fromIndex and less than
maxIndex, or -1 if none of the needle occur.