Package org.thymeleaf.util
Class ListUtils
Object
org.thymeleaf.util.ListUtils
- Since:
- 1.0
- Author:
- Daniel Fernández
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
static boolean
containsAll
(List<?> target, Object[] elements) static boolean
containsAll
(List<?> target, Collection<?> elements) static boolean
static int
static <T extends Comparable<? super T>>
List<T>Creates an new instance of the list add the sorted list to it.static <T> List<T>
sort
(List<T> list, Comparator<? super T> c) Creates an new instance of the list add the sorted list to it.static List<?>
-
Method Details
-
toList
-
size
-
isEmpty
-
contains
-
containsAll
-
containsAll
-
sort
Creates an new instance of the list add the sorted list to it.
- Type Parameters:
T
- the type of the list elements.- Parameters:
list
- the list which content should be ordered.- Returns:
- a new sorted list.
- See Also:
-
sort
Creates an new instance of the list add the sorted list to it.
- Type Parameters:
T
- the type of the list elements.- Parameters:
list
- the list which content should be ordered.c
- the comparator.- Returns:
- a new sorted list.
- See Also:
-