public final class Lists extends Object
Utility class for performing list operations.
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 © 2014 The THYMELEAF team. All rights reserved.