public abstract class ListUtils extends Object
Modifier and Type | Method and Description |
---|---|
static <E> List<E> |
distinct(List<E> list)
Returns a new list containing unique elements from the given
list . |
public static <E> List<E> distinct(List<E> list)
list
. Original list is not modified.E
- the type of elements in the listlist
- original list that will not be modifiedCopyright © 2010–2023. All rights reserved.