Class ArraysTools
- java.lang.Object
-
- org.hibernate.envers.internal.tools.ArraysTools
-
public abstract class ArraysTools extends Object
-
-
Constructor Summary
Constructors Constructor Description ArraysTools()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> boolean
arrayIncludesInstanceOf(T[] array, Class<?> cls)
static boolean
arraysEqual(Object[] array1, Object[] array2)
static Object[]
mapToArray(Map<String,Object> data, String[] keys)
Converts map's value set to an array.
-
-
-
Method Detail
-
arrayIncludesInstanceOf
public static <T> boolean arrayIncludesInstanceOf(T[] array, Class<?> cls)
-
mapToArray
public static Object[] mapToArray(Map<String,Object> data, String[] keys)
Converts map's value set to an array.keys
parameter specifies requested elements and their order.- Parameters:
data
- Source map.keys
- Array of keys that represent requested map values.- Returns:
- Array of values stored in the map under specified keys. If map does not contain requested key,
null
is inserted.
-
-