Package org.thymeleaf.expression
Class Arrays
- Object
-
- org.thymeleaf.expression.Arrays
-
public final class Arrays extends Object
Expression Object for performing array operations inside Thymeleaf Standard Expressions.
An object of this class is usually available in variable evaluation expressions with the name
#arrays
.- Since:
- 1.0
- Author:
- Daniel Fernández
-
-
Constructor Summary
Constructors Constructor Description Arrays()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(Object[] target, Object element)
boolean
containsAll(Object[] target, Object[] elements)
boolean
containsAll(Object[] target, Collection<?> elements)
boolean
isEmpty(Object[] target)
int
length(Object[] target)
Object[]
toArray(Object target)
Object[]
toBooleanArray(Object target)
Object[]
toDoubleArray(Object target)
Object[]
toFloatArray(Object target)
Object[]
toIntegerArray(Object target)
Object[]
toLongArray(Object target)
Object[]
toStringArray(Object target)
-
-
-
Method Detail
-
length
public int length(Object[] target)
-
isEmpty
public boolean isEmpty(Object[] target)
-
containsAll
public boolean containsAll(Object[] target, Collection<?> elements)
-
-