public class ListTools extends Object
Constructor and Description |
---|
ListTools() |
Modifier and Type | Method and Description |
---|---|
static <T> List<T> |
getListFromArray(T[] t)
Create a list based on an array
|
protected static boolean |
moveElement(List l,
int src,
int dst,
int[] mapping) |
static boolean |
moveItems(List l,
int[] sel,
int diff)
Move some items in a list: swap position with other items.
|
public static <T> List<T> getListFromArray(T[] t)
t
- the array we want to convert to listpublic static boolean moveItems(List l, int[] sel, int diff)
l
- sel
- diff
- protected static boolean moveElement(List l, int src, int dst, int[] mapping)
Copyright © 2005–2020. All rights reserved.