public class ListUtils extends Object
| Constructor and Description |
|---|
ListUtils() |
| Modifier and Type | Method and Description |
|---|---|
static List<Point2D> |
deepCopy(List<Point2D> list)
Returns a new List with a clone of each point from the list provided.
|
static <T> List<T> |
filterType(List list,
Class<T> cls)
Returns the items in the given list which match the given class.
|
static List<Integer[]> |
findConsecutiveSequences(Integer[] vals)
Takes an array of unsorted integers with no repeated values.
|
static float[] |
parseFloats(String... fStrs)
Returns an array of floats parsed from the given strings.
|
public static float[] parseFloats(String... fStrs)
fStrs - strings to parsepublic static List<Point2D> deepCopy(List<Point2D> list)
list - points to copypublic static List<Integer[]> findConsecutiveSequences(Integer[] vals)
vals - unsorted array of integer without repeatsCopyright © 2011-2014. All Rights Reserved.