|
EclipseLink 2.5.0, build 'v20130507-3faac2b' API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.persistence.jpa.jpql.tools.utility.filter.CompoundFilter<T>
org.eclipse.persistence.jpa.jpql.tools.utility.filter.AndFilter<T>
public class AndFilter<T>
This filter will "accept" any object that is accept by both of the specified wrapped filters. The first filter will always be evaluated, while the second will only be evaluated if necessary.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.persistence.jpa.jpql.tools.utility.filter.CompoundFilter |
|---|
filter1, filter2 |
| Constructor Summary | |
|---|---|
AndFilter(Filter<T> filter1,
Filter<T> filter2)
Creates a new AndFilter that will "accept" any object that is accept by both of
the specified wrapped filters. |
|
| Method Summary | ||
|---|---|---|
boolean |
accept(T value)
Determines whether the specified object is "accepted" by the filter. |
|
static
|
and(Filter<T>... filters)
Creates a new ANDFilter that will "accept" any object that is accept by all of
the specified filters. |
|
AndFilter<T> |
clone()
|
|
protected java.lang.String |
operatorString()
Returns a string representation of the filter's operator. |
|
| Methods inherited from class org.eclipse.persistence.jpa.jpql.tools.utility.filter.CompoundFilter |
|---|
equals, getFilter1, getFilter2, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AndFilter(Filter<T> filter1,
Filter<T> filter2)
AndFilter that will "accept" any object that is accept by both of
the specified wrapped filters.
filter1 - The first Filter that might "accept" any objectfilter2 - The second Filter that might "accept" any object| Method Detail |
|---|
public static <T> Filter<T> and(Filter<T>... filters)
ANDFilter that will "accept" any object that is accept by all of
the specified filters.
filters - The list of filters encapsulated by a chain of AndFilters
AndFilters that will "accept" any object when all
filters accepts the objectpublic boolean accept(T value)
value - The value to filter
true if the given value is "accepted" by this filter; false
if it was "rejected"public AndFilter<T> clone()
clone in class CompoundFilter<T>protected java.lang.String operatorString()
operatorString in class CompoundFilter<T>
|
EclipseLink 2.5.0, build 'v20130507-3faac2b' API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||