|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Objectorg.thymeleaf.util.ListUtils
public final class ListUtils
| Method Summary | ||
|---|---|---|
static boolean |
contains(List<?> target,
Object element)
|
|
static boolean |
containsAll(List<?> target,
Collection<?> elements)
|
|
static boolean |
containsAll(List<?> target,
Object[] elements)
|
|
static boolean |
isEmpty(List<?> target)
|
|
static int |
size(List<?> target)
|
|
static
|
sort(List<T> list)
Creates an new instance of the list add the sorted list to it. |
|
static
|
sort(List<T> list,
Comparator<? super T> c)
Creates an new instance of the list add the sorted list to it. |
|
static List<?> |
toList(Object target)
|
|
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static List<?> toList(Object target)
public static int size(List<?> target)
public static boolean isEmpty(List<?> target)
public static boolean contains(List<?> target,
Object element)
public static boolean containsAll(List<?> target,
Object[] elements)
public static boolean containsAll(List<?> target,
Collection<?> elements)
public static <T extends Comparable<? super T>> List<T> sort(List<T> list)
Creates an new instance of the list add the sorted list to it.
list - the list which content should be ordered.
Collections.sort(List).
public 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.
list - the list which content should be ordered.c - the comparator.
Collections.sort(List, Comparator).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||