@Deprecated public abstract class ArrayUtil extends Object
Arrays
are provided here.Modifier and Type | Class and Description |
---|---|
static interface |
ArrayUtil.ArrayEquality
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
static ArrayUtil.ArrayEquality |
BOXING_AWARE_ARRAY_EQUALITY
Deprecated.
|
static ArrayUtil.ArrayEquality |
DEFAULT_ARRAY_EQUALITY
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static <T> T[] |
array(T... varargs)
Deprecated.
|
static Object |
clone(Object array)
Deprecated.
|
static <T> T[] |
concat(T[] initial,
T... additional)
Deprecated.
|
static <T> T[] |
concat(T first,
T... additional)
Deprecated.
|
static <T> T[] |
concatArrays(T[] initial,
T[]... additional)
Deprecated.
Create a single array from many arrays.
|
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 boolean |
equals(Object firstArray,
Object otherArray)
Deprecated.
|
static boolean |
equals(Object firstArray,
Object otherArray,
ArrayUtil.ArrayEquality equality)
Deprecated.
|
static int |
hashCode(Object array)
Deprecated.
|
static <T> int |
indexOf(T[] array,
T item)
Deprecated.
|
static boolean |
isEmpty(Object[] array)
Deprecated.
|
static <T> String |
join(T[] items,
String delimiter)
Deprecated.
|
static <T> T |
lastOf(T[] array)
Deprecated.
|
static <FROM,TO> TO[] |
map(FROM[] from,
Function<FROM,TO> transformer,
Class<TO> toClass)
Deprecated.
|
static <T> int |
missing(T[] array,
T[] contains)
Deprecated.
|
static <T> boolean |
nullSafeEquals(T first,
T other)
Deprecated.
|
static <T> void |
reverse(T[] array)
Deprecated.
|
static <T> T[] |
union(T[] first,
T[] other)
Deprecated.
|
static <T> T[] |
without(T[] source,
T... toRemove)
Deprecated.
|
@Deprecated public static final ArrayUtil.ArrayEquality DEFAULT_ARRAY_EQUALITY
@Deprecated public static final ArrayUtil.ArrayEquality BOXING_AWARE_ARRAY_EQUALITY
@Deprecated public static int hashCode(Object array)
@Deprecated public static boolean equals(Object firstArray, Object otherArray)
@Deprecated public static boolean equals(Object firstArray, Object otherArray, ArrayUtil.ArrayEquality equality)
Arrays
.
Both arguments must be arrays of some type.firstArray
- value to compare to the other valueotherArray
- value to compare to the first valueequality
- equality logictrue
if the arrays are equalfor similar functionality.
@Deprecated public static Object clone(Object array)
@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
.@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 boolean isEmpty(Object[] array)
array
- - array to check@Deprecated public static <T> String join(T[] items, String delimiter)
T
- The type of the arrayitems
- The array to convertdelimiter
- The delimiter to useString
representation of items
with a custom delimiter in between.@Deprecated public static <FROM,TO> TO[] map(FROM[] from, Function<FROM,TO> transformer, Class<TO> toClass)
FROM
- type of original itemsTO
- type of the converted itemsfrom
- original arraytransformer
- transformer that converts an item from the original to the target typetoClass
- target type for itemsfrom
converted into type toClass
.@Deprecated public static <T> T[] concat(T first, T... additional)
T
- the type of the itemsfirst
- the item to put firstadditional
- the additional items to add to the arrayfirst
as the item at index 0
and the additional
items following it.@Deprecated public static <T> T[] concat(T[] initial, T... additional)
T
- the type of the array itemsinitial
- the initial arrayadditional
- the additional items that would be added into the initial arraypublic static <T> T[] concatArrays(T[] initial, T[]... additional)
T
- the type of the array itemsinitial
- an initial arrayadditional
- additional arrays to be concatenated with the initial array@Deprecated @SafeVarargs public static <T> T[] array(T... varargs)
T
- the type of the itemsvarargs
- the items@Deprecated public static <T> T lastOf(T[] array)
@Deprecated public static <T> int indexOf(T[] array, T item)
@Deprecated public static <T> T[] without(T[] source, T... toRemove)
@Deprecated public static <T> void reverse(T[] array)
Copyright © 2002–2018 The Neo4j Graph Database Project. All rights reserved.