public final class ListUtil
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <T> java.util.List<T> |
copyToImmutableList(java.util.List<T> list)
Copies the given
List and returns the copy as an immutable List. |
static <T> boolean |
identityEquals(java.util.List<? extends T> list1,
java.util.List<? extends T> list2)
Compares the contents of two
Lists by using object identity. |
static <T> java.util.List<T> |
newImmutableList(T item) |
public static <T> boolean identityEquals(java.util.List<? extends T> list1,
java.util.List<? extends T> list2)
Lists by using object identity.public static <T> java.util.List<T> copyToImmutableList(java.util.List<T> list)
List and returns the copy as an immutable List.public static <T> java.util.List<T> newImmutableList(T item)