public final class ArrayUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
contains(int[] elements,
int element)
Checks whether the given element appears anywhere in the given array.
|
static int[] |
exclude(int[] elements,
int[] excludedElements)
Calculates an array with the same order and elements as the original, except the excluded ones.
|
public static int[] exclude(int[] elements,
int[] excludedElements)
elements - all elements. Must not be nullexcludedElements - the ones which are be excluded (duplicates don't matter). Most not be nullpublic static boolean contains(int[] elements,
int element)
null is returned.elements - all elements which are searched. Must not be nullelement - the element for which is searchedCopyright © 2019. All rights reserved.