@Deprecated public interface WrappingFilterable<T> extends Filterable<T>
Modifier and Type | Method and Description |
---|---|
default Filterable<T> |
filter(java.util.function.Predicate<? super T> fn)
Deprecated.
Keep only elements for which the supplied predicates hold
e.g.
|
java.lang.Object |
getFilterable()
Deprecated.
|
Filterable<T> |
withFilterable(T filterable)
Deprecated.
|
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 filterable)
filterable
- Wrapped filterablejava.lang.Object getFilterable()