Package org.thymeleaf.expression
Class Lists
- Object
-
- org.thymeleaf.expression.Lists
-
public final class Lists extends Object
Expression Object for performing list operations inside Thymeleaf Standard Expressions.
An object of this class is usually available in variable evaluation expressions with the name
#lists
.- Since:
- 1.0
- Author:
- Daniel Fernández
-
-
Constructor Summary
Constructors Constructor Description Lists()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(List<?> target, Object element)
boolean
containsAll(List<?> target, Object[] elements)
boolean
containsAll(List<?> target, Collection<?> elements)
boolean
isEmpty(List<?> target)
int
size(List<?> target)
<T extends Comparable<? super T>>
List<T>sort(List<T> list)
<T> List<T>
sort(List<T> list, Comparator<? super T> c)
List<?>
toList(Object target)
-
-
-
Method Detail
-
size
public int size(List<?> target)
-
isEmpty
public boolean isEmpty(List<?> target)
-
containsAll
public boolean containsAll(List<?> target, Collection<?> elements)
-
sort
public <T extends Comparable<? super T>> List<T> sort(List<T> list)
-
sort
public <T> List<T> sort(List<T> list, Comparator<? super T> c)
-
-