public class ListUtil extends Object
Constructor and Description |
---|
ListUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean[] |
asBooleanArray(List<Boolean> list) |
static byte[] |
asByteArray(List<Byte> list) |
static char[] |
asCharArray(List<Character> list) |
static double[] |
asDoubleArray(List<Double> list) |
static float[] |
asFloatArray(List<Float> list) |
static int[] |
asIntArray(List<Integer> list) |
static long[] |
asLongArray(List<Long> list) |
static short[] |
asShortArray(List<Short> list) |
static <T> void |
shuffle(List<T> list,
int nswaps) |
static <T> void |
swap(List<T> list,
int a,
int b) |