public static class Expressive.Filter extends Object
EPredicate to them.
The operation performed is dependent on the method invoked.EPredicate,
Expressive.Predicate| Modifier and Type | Method and Description |
|---|---|
static <T,I extends Iterable<T>> |
remove(I items,
EPredicate<T> predicate)
Return a new
EList removing the items that pass the given EPredicate. |
static <T,I extends Iterable<T>> |
retain(I items,
EPredicate<T> predicate)
Return a new
EList including only the items that pass the given EPredicate. |
static <T> Pair<EList<T>,EList<T>> |
split(Collection<T> items,
EPredicate<T> predicate)
Returns a pair of lists split using the supplied
EPredicate. |
public static <T,I extends Iterable<T>> EList<T> retain(I items, EPredicate<T> predicate)
EList including only the items that pass the given EPredicate.items - predicate - public static <T,I extends Iterable<T>> EList<T> remove(I items, EPredicate<T> predicate)
EList removing the items that pass the given EPredicate.items - predicate - public static <T> Pair<EList<T>,EList<T>> split(Collection<T> items, EPredicate<T> predicate)
EPredicate.
The first list contains all the items passing the given predicate, the second list the rest.items - predicate - Copyright © 2013 Atomic Leopard. All Rights Reserved.