Class CompoundFilter<T>
java.lang.Object
org.eclipse.persistence.jpa.jpql.tools.utility.filter.CompoundFilter<T>
- All Implemented Interfaces:
Serializable
,Cloneable
,Filter<T>
- Direct Known Subclasses:
AndFilter
public abstract class CompoundFilter<T>
extends Object
implements Filter<T>, Cloneable, Serializable
This filter provides a simple framework for combining the behavior of a pair of filters.
- Since:
- 2.3
- Version:
- 2.3
- See Also:
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
CompoundFilter
(Filter<T> filter1, Filter<T> filter2) Creates a newCompoundFilter
that will "accept" any object that is accept by both of the specified wrapped filters. -
Method Summary
-
Field Details
-
Constructor Details
-
CompoundFilter
Creates a newCompoundFilter
that will "accept" any object that is accept by both of the specified wrapped filters.- Parameters:
filter1
- The firstFilter
used to accept the valuefilter2
- The secondFilter
used to accept the value
-
-
Method Details
-
clone
-
equals
-
getFilter1
Returns the leftFilter
of this compound filter.- Returns:
- The first
Filter
-
getFilter2
Returns the secondFilter
of this compound filter.- Returns:
- The second
Filter
-
hashCode
public int hashCode() -
operatorString
Returns a string representation of the filter's operator.- Returns:
- The string value of the operator
-
toString
-