public class ListTools extends Object
Constructor and Description |
---|
ListTools() |
Modifier and Type | Method and Description |
---|---|
static <T> List<T> |
filter(Collection<T> target,
Predicate<T> pred)
Filters a Collection using a Predicate, returning a List.
|
static <T> T |
findFirst(Collection<T> target,
Predicate<T> pred)
Returns the first element of a Collection that satisfies a Predicate.
|
public static <T> List<T> filter(Collection<T> target, Predicate<T> pred)
public static <T> T findFirst(Collection<T> target, Predicate<T> pred)
Copyright © 2019 Power TAC. All rights reserved.