public abstract class ArrayUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> boolean |
contains(T[] array,
int arrayLength,
T contains)
Deprecated.
|
static <T> boolean |
contains(T[] array,
T contains)
Deprecated.
|
static <T> boolean |
containsAll(T[] array,
T[] contains)
Deprecated.
|
static <T> int |
missing(T[] array,
T[] contains)
Deprecated.
|
static <T> boolean |
nullSafeEquals(T first,
T other)
Deprecated.
|
static <T> T[] |
union(T[] first,
T[] other)
Deprecated.
|
@Deprecated public static <T> boolean containsAll(T[] array, T[] contains)
T - The type of the array itemsarray - Array to examinecontains - Items to look fortrue if all items in contains exists in array, otherwise false.@Deprecated public static <T> boolean contains(T[] array, T contains)
T - The type of the array itemsarray - Array to examinecontains - Single item to look fortrue if contains exists in array, otherwise false.@Deprecated public static <T> boolean contains(T[] array, int arrayLength, T contains)
T - The type of the array itemsarray - Array to examinearrayLength - Number of items to check, from the start of the arraycontains - Single item to look fortrue if contains exists in array, otherwise false.@Deprecated public static <T> boolean nullSafeEquals(T first, T other)
null they are regarded as equal.T - The type of the itemsfirst - First item to compareother - Other item to comparetrue if first and other are both null or are both equal.@Deprecated public static <T> T[] union(T[] first, T[] other)
T - The type of the arraysfirst - First arrayother - Other arrayfirst and other. Items occurring in
both first and other will only have of the two in the resulting union.@Deprecated public static <T> int missing(T[] array, T[] contains)
T - The type of the array itemsarray - Array to examinecontains - Items to look forcontains are missing from array.Copyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.