|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jjoost.util.filters.MappedFilter<X,Y>
public class MappedFilter<X,Y>
A filter that applies the provided function to its input before delegating to the provided filter
| Constructor Summary | |
|---|---|
MappedFilter(Function<X,Y> mapping,
Filter<Y> filter)
Constructs a filter that applies the provided function to its input before delegating to the provided filter |
|
| Method Summary | ||
|---|---|---|
boolean |
accept(X test)
Returns true if the Filter accepts the parameter and false otherwise |
|
static
|
get(Function<X,Y> mapping,
Filter<Y> filter)
Returns a filter that applies the provided function to its input before delegating to the provided filter |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MappedFilter(Function<X,Y> mapping,
Filter<Y> filter)
mapping - the function to transform the input variablesfilter - the delegate filter| Method Detail |
|---|
public boolean accept(X test)
Filtertrue if the Filter accepts the parameter and false otherwise
accept in interface Filter<X>test - value to test
true if the filter accepts test; false otherwise
public static <X,Y> MappedFilter<X,Y> get(Function<X,Y> mapping,
Filter<Y> filter)
mapping - the function to transform the input variablesfilter - the delegate filter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||