Class AbstractQuantifierPredicate<T>
java.lang.Object
org.apache.commons.collections4.functors.AbstractPredicate<T>
org.apache.commons.collections4.functors.AbstractQuantifierPredicate<T>
- Type Parameters:
T
- the type of the input to the predicate.
- All Implemented Interfaces:
Serializable
,Predicate<T>
,PredicateDecorator<T>
,Predicate<T>
- Direct Known Subclasses:
AllPredicate
,AnyPredicate
,NonePredicate
,OnePredicate
public abstract class AbstractQuantifierPredicate<T>
extends AbstractPredicate<T>
implements PredicateDecorator<T>, Serializable
Abstract base class for quantification predicates, e.g. All, Any, None.
- Since:
- 4.0
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionThe array of predicates to call -
Constructor Summary
ConstructorDescriptionAbstractQuantifierPredicate
(Predicate<? super T>... predicates) Constructor that performs no validation. -
Method Summary
Methods inherited from class org.apache.commons.collections4.functors.AbstractPredicate
evaluate
-
Field Details
-
iPredicates
The array of predicates to call
-
-
Constructor Details
-
AbstractQuantifierPredicate
Constructor that performs no validation.- Parameters:
predicates
- the predicates to check, not cloned, not null
-
-
Method Details
-
getPredicates
Gets the predicates.- Specified by:
getPredicates
in interfacePredicateDecorator<T>
- Returns:
- a copy of the predicates
- Since:
- 3.1
-