public final class TLists extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
retainIntersection(List<?>... lists)
Modify each list to retain only the elements that are contained in all of
the lists.
|
static <T> T[] |
toArrayCasted(List<T> list,
Class<T> clazz)
Syntactic sugar for transforming a generic
List into an array
with the same generic type. |
@SafeVarargs public static void retainIntersection(List<?>... lists)
lists -