T
- public interface Filterable<T>
Modifier and Type | Method and Description |
---|---|
Filterable<T> |
filter(java.util.function.Predicate<? super T> fn) |
default Filterable<T> |
filterNot(java.util.function.Predicate<? super T> fn) |
default Filterable<T> |
notNull() |
default <U> Filterable<U> |
ofType(java.lang.Class<U> type)
Keep only those elements in a stream that are of a given type.
|
Filterable<T> filter(java.util.function.Predicate<? super T> fn)
default <U> Filterable<U> ofType(java.lang.Class<U> type)
default Filterable<T> filterNot(java.util.function.Predicate<? super T> fn)
default Filterable<T> notNull()