Package org.powertac.util
Class ListTools
- java.lang.Object
- 
- org.powertac.util.ListTools
 
- 
 public class ListTools extends Object A collection of static methods intended to simplify list processing tasks. Much of the content is modeled on web resources.- Author:
- John Collins
 
- 
- 
Constructor SummaryConstructors Constructor Description ListTools()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> List<T>filter(Collection<T> target, Predicate<T> pred)Filters a Collection using a Predicate, returning a List.static <T> TfindFirst(Collection<T> target, Predicate<T> pred)Returns the first element of a Collection that satisfies a Predicate.
 
- 
- 
- 
Method Detail- 
filterpublic static <T> List<T> filter(Collection<T> target, Predicate<T> pred) Filters a Collection using a Predicate, returning a List.
 - 
findFirstpublic static <T> T findFirst(Collection<T> target, Predicate<T> pred) Returns the first element of a Collection that satisfies a Predicate.
 
- 
 
-