Class ArraysTools
java.lang.Object
org.hibernate.envers.internal.tools.ArraysTools
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <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.
-
Constructor Details
-
ArraysTools
public ArraysTools()
-
-
Method Details
-
arrayIncludesInstanceOf
-
arraysEqual
-
mapToArray
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.
-