| Modifier and Type | Class and Description |
|---|---|
static interface |
ArrayUtil.ArrayEquality |
| Modifier and Type | Field and Description |
|---|---|
static ArrayUtil.ArrayEquality |
DEFAULT_ARRAY_EQUALITY |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
approximatelyEqual(double[] that,
double[] other,
double tolerance) |
static Object |
clone(Object array) |
static <T> T[] |
concat(T first,
T... additional) |
static <T> boolean |
contains(T[] array,
int arrayLength,
T contains) |
static <T> boolean |
contains(T[] array,
T contains) |
static <T> boolean |
containsAll(T[] array,
T[] contains) |
static boolean |
equals(Object firstArray,
Object otherArray) |
static boolean |
equals(Object firstArray,
Object otherArray,
ArrayUtil.ArrayEquality equality)
I also can't believe this method is missing from
Arrays. |
static int |
hashCode(Object array) |
static <T> String |
join(T[] items,
String delimiter) |
static <FROM,TO> TO[] |
map(FROM[] from,
org.neo4j.function.Function<FROM,TO> transformer,
Class<TO> toClass) |
static <T> int |
missing(T[] array,
T[] contains) |
static <T> boolean |
nullSafeEquals(T first,
T other) |
static String |
toString(Object array)
Deprecated.
use
ObjectUtil.toString(Object) instead. |
static <T> T[] |
union(T[] first,
T[] other) |
public static final ArrayUtil.ArrayEquality DEFAULT_ARRAY_EQUALITY
@Deprecated public static String toString(Object array)
ObjectUtil.toString(Object) instead.Arrays.for similar functionality.public static int hashCode(Object array)
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 logicfor similar functionality.public static boolean approximatelyEqual(double[] that,
double[] other,
double tolerance)
public static <T> int missing(T[] array,
T[] contains)
contains are missing from array.
Order of items doesn't matter.public static <T> boolean containsAll(T[] array,
T[] contains)
true if all items in contains exists in array, otherwise false.
Order of items doesn't matter.public static <T> boolean contains(T[] array,
T contains)
true if contains exists in array, otherwise false.public static <T> boolean contains(T[] array,
int arrayLength,
T contains)
true if contains exists in array, otherwise false.public static <T> boolean nullSafeEquals(T first,
T other)
true if first and other are both null or are both equal.public static <T> T[] union(T[] first,
T[] other)
first and other. Items occuring in
both first and other will only have of the two in the resulting union.public static <T> String join(T[] items, String delimiter)
String representation of items with a custom delimiter in between.public static <FROM,TO> TO[] map(FROM[] from,
org.neo4j.function.Function<FROM,TO> transformer,
Class<TO> toClass)
from converted into type toClass.public static <T> T[] concat(T first,
T... additional)
first as the item at index 0 and the additional
items following it.Copyright © 2002–2015 The Neo4j Graph Database Project. All rights reserved.