Package org.thymeleaf.util
Class ArrayUtils
- Object
-
- org.thymeleaf.util.ArrayUtils
-
public final class ArrayUtils extends Object
- Since:
- 1.0
- Author:
- Daniel Fernández
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
contains(Object[] target, Object element)
static boolean
containsAll(Object[] target, Object[] elements)
static boolean
containsAll(Object[] target, Collection<?> elements)
static char[]
copyOf(char[] original, int newLength)
static <T> T[]
copyOf(T[] original, int newLength)
static <T,X>
X[]copyOf(T[] original, int newLength, Class<? extends X[]> newType)
static char[]
copyOfRange(char[] original, int from, int to)
static boolean
isEmpty(Object[] target)
static int
length(Object[] target)
static Object[]
toArray(Object target)
static Object[]
toBooleanArray(Object target)
static Object[]
toDoubleArray(Object target)
static Object[]
toFloatArray(Object target)
static Object[]
toIntegerArray(Object target)
static Object[]
toLongArray(Object target)
static Object[]
toStringArray(Object target)
-
-
-
Method Detail
-
length
public static int length(Object[] target)
-
isEmpty
public static boolean isEmpty(Object[] target)
-
containsAll
public static boolean containsAll(Object[] target, Collection<?> elements)
-
copyOf
public static <T,X> X[] copyOf(T[] original, int newLength, Class<? extends X[]> newType)
-
copyOf
public static <T> T[] copyOf(T[] original, int newLength)
-
copyOf
public static char[] copyOf(char[] original, int newLength)
-
copyOfRange
public static char[] copyOfRange(char[] original, int from, int to)
-
-