|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.robokind.api.common.utils.ListUtils
public class ListUtils
Utility methods for working with Lists.
Constructor Summary | |
---|---|
ListUtils()
|
Method Summary | ||
---|---|---|
static List<Point2D> |
deepCopy(List<Point2D> list)
Returns a deep copy of a list of Point2D. |
|
static
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ListUtils()
Method Detail |
---|
public static float[] parseFloats(String... fStrs)
fStrs
- strings to parse
public static List<Point2D> deepCopy(List<Point2D> list)
list
- points to copy
public static List<Integer[]> findConsecutiveSequences(Integer[] vals)
vals
- unsorted array of integer without repeats
public static <T> List<T> filterType(List list, Class<T> cls)
T
- class to matchlist
- items to filtercls
- class to match
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |