ListUtils { public static <T> List<T> unique(List<T> list) { return toList(list.stream().distinct()); } private  ListUtils(); static List<T> unique(List<T> list); static List<Integer> asList(int...values); static List<T> toList(Stream<T> stream); static String str(T[] array); static String str(int[] array); static String str(long[] array); static void print(IndentedWriter out, List<T> list); static void print(final IndentedWriter out, List<T> list, final CharSequence sep); static boolean equalsUnordered(List<T> list1, List<T> list2); static List<List<T>> permute(List<T> c);  }
@Test public void list03() { List<Integer> x = new ArrayList<>() ; x = unique(x) ; assertEquals(0, x.size()) ; test(x) ; }