Modifier and Type | Field and Description |
---|---|
private static Filter |
ALWAYS_INCLUDED_FILTER |
private static FilterResult |
ALWAYS_INCLUDED_RESULT |
private java.util.Collection<Filter<T>> |
filters |
private static FilterResult |
INCLUDED_BY_ALL_FILTERS |
Constructor and Description |
---|
CompositeFilter(java.util.Collection<? extends Filter<T>> filters) |
Modifier and Type | Method and Description |
---|---|
(package private) static <T> Filter<T> |
alwaysIncluded() |
FilterResult |
apply(T element)
Apply this filter to the supplied object.
|
java.util.function.Predicate<T> |
toPredicate()
Return a
Predicate that returns true if this filter
includes the object supplied to the predicate's
test method. |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
adaptFilter, composeFilters, composeFilters
private static final Filter ALWAYS_INCLUDED_FILTER
private static final FilterResult ALWAYS_INCLUDED_RESULT
private static final FilterResult INCLUDED_BY_ALL_FILTERS
static <T> Filter<T> alwaysIncluded()
public FilterResult apply(T element)
Filter
public java.util.function.Predicate<T> toPredicate()
Filter
Predicate
that returns true
if this filter
includes the object supplied to the predicate's
test
method.toPredicate
in interface Filter<T>
public java.lang.String toString()
toString
in class java.lang.Object