public interface WrappingFilterable<T> extends Filterable<T>
Modifier and Type | Method and Description |
---|---|
default Filterable<T> |
filter(java.util.function.Predicate<? super T> fn)
Keep only elements for which the supplied predicates hold
e.g.
|
java.lang.Object |
getFilterable() |
Filterable<T> |
withFilterable(T filter) |
filterNot, notNull, ofType
default Filterable<T> filter(java.util.function.Predicate<? super T> fn)
Filterable
of(1,2,3).filter(i->i>2);
//[3]
filter
in interface Filterable<T>
fn
- to filter elements by, retaining matchesFilterable<T> withFilterable(T filter)
java.lang.Object getFilterable()