public class ListUtils extends Object
Modifier and Type | Method and Description |
---|---|
static List<Integer> |
asList(int... values) |
static <T> List<List<T>> |
permute(List<T> c)
Return a list of lists of all the elements of collection in every order
Easy to run out of heap memory.
|
static <T> void |
print(IndentedWriter out,
List<T> list) |
static <T> void |
print(IndentedWriter out,
List<T> list,
String sep) |
static String |
str(int[] array) |
static String |
str(long[] array) |
static <T> String |
str(T[] array) |
static <T> List<T> |
unique(List<T> list) |
public static <T> String str(T[] array)
public static String str(int[] array)
public static String str(long[] array)
public static <T> void print(IndentedWriter out, List<T> list)
public static <T> void print(IndentedWriter out, List<T> list, String sep)
Licenced under the Apache License, Version 2.0