java.lang.Object
org.htmlunit.util.ArrayUtils
Utility functions not covered by third party libraries.
- Author:
- Ronald Brill
-
Field Details
-
EMPTY_BYTE_ARRAY
public static final byte[] EMPTY_BYTE_ARRAYAn empty immutablebytearray. -
EMPTY_CHAR_ARRAY
public static final char[] EMPTY_CHAR_ARRAYAn empty immutablechararray. -
EMPTY_STRING_ARRAY
An empty immutableStringarray.
-
-
Method Details
-
contains
- Parameters:
strings- the string[] to checkexpected- the string that we expect- Returns:
- true if at least one element of the array equals to the expected string
-
contains
public static boolean contains(char[] chars, char expected) - Parameters:
chars- the char[] to checkexpected- the char that we expect- Returns:
- true if at least one element of the array equals to the expected char
-
contains
public static boolean contains(byte[] bytes, byte expected) - Parameters:
bytes- the byte[] to checkexpected- the byte that we expect- Returns:
- true if at least one element of the array equals to the expected byte
-
containsIgnoreCase
- Parameters:
strings- the string[] to checkexpected- the string that we expect- Returns:
- true if at least one element of the array equalsIgnoreCase to the expected string
-