|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.mmm.util.filter.base.ConstantFilter<V>
V - is the generic type of the filtered objects.public final class ConstantFilter<V>
This is an implementation of Filter that either accepts or rejects
all objects to filter.
| Field Summary | |
|---|---|
private static ConstantFilter |
ACCEPT_ALL_FILTER
|
private static ConstantFilter |
REJECT_ALL_FILTER
|
| Constructor Summary | |
|---|---|
private |
ConstantFilter()
The constructor. |
| Method Summary | ||
|---|---|---|
boolean |
accept(V value)
This method determines if the given value should be accepted. |
|
static
|
getInstance(boolean accept)
This method gets the an instance of this class. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final ConstantFilter ACCEPT_ALL_FILTER
getInstance(boolean)private static final ConstantFilter REJECT_ALL_FILTER
getInstance(boolean)| Constructor Detail |
|---|
private ConstantFilter()
| Method Detail |
|---|
public boolean accept(V value)
value should be accepted.
accept in interface Filter<V>value - is the value to check.
true if the given value is acceptable,
false if it should be filtered.public static <V> Filter<V> getInstance(boolean accept)
V - is the generic type of the filtered object.accept - - true if the returned Filter should
accept all objects, false to reject all objects.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||