Package org.thymeleaf.util
Class ListUtils
java.lang.Object
org.thymeleaf.util.ListUtils
- Since:
- 1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic booleancontainsAll(List<?> target, Object[] elements) static booleancontainsAll(List<?> target, Collection<?> elements) private static <T> List<T> fillNewList(Object[] a, Class<? extends List> listType) static booleanstatic intstatic <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<?>
-
Constructor Details
-
ListUtils
private ListUtils()
-
-
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:
-
fillNewList
-