public final class ArrayUtil
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
contains(@NotNull boolean[] array,
boolean value)
Returns, whether an array contains a specific boolean value, or not.
|
static int |
indexOf(@NotNull boolean[] array,
boolean value)
Returns the index of the first item of an array, which equals a specific boolean value.
|
static int |
lastIndexOf(@NotNull boolean[] array,
boolean value)
Returns the index of the last item of an array, which equals a specific boolean value.
|
public static int indexOf(@NotNull
@NotNull boolean[] array,
boolean value)
array - The array, which should be checked, as a Boolean array. The array may
not be nullvalue - The value, which should be checked, as a Boolean valueInteger value or -1, if no item of the array equals the valuepublic static int lastIndexOf(@NotNull
@NotNull boolean[] array,
boolean value)
array - The array, which should be checked, as a Boolean array. The array may
not be nullvalue - The value, which should be checked, as a Boolean valueInteger value or -1, if no item of the array equals the valuepublic static boolean contains(@NotNull
@NotNull boolean[] array,
boolean value)
array - The array, which should be checked, as a Boolean array. The array may
not be nullvalue - The value, which should be checked, as a Boolean value