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.
Constructor and Description |
---|
Lists() |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(List<?> target,
Object element) |
boolean |
containsAll(List<?> target,
Collection<?> elements) |
boolean |
containsAll(List<?> target,
Object[] elements) |
boolean |
isEmpty(List<?> target) |
int |
size(List<?> target) |
<T extends Comparable<? super T>> |
sort(List<T> list) |
<T> List<T> |
sort(List<T> list,
Comparator<? super T> c) |
List<?> |
toList(Object target) |
public int size(List<?> target)
public boolean isEmpty(List<?> target)
public boolean containsAll(List<?> target, Collection<?> elements)
public <T extends Comparable<? super T>> List<T> sort(List<T> list)
public <T> List<T> sort(List<T> list, Comparator<? super T> c)
Copyright © 2017 The THYMELEAF team. All rights reserved.