Package org.gbif.api.model.predicate
Class CompoundPredicate
- java.lang.Object
-
- org.gbif.api.model.predicate.CompoundPredicate
-
- All Implemented Interfaces:
Serializable
,Predicate
- Direct Known Subclasses:
ConjunctionPredicate
,DisjunctionPredicate
public class CompoundPredicate extends Object implements Predicate
A compound predicate is a Predicate that itself contains other Predicates. This is to be used as a base class because the way the containing Predicates should be combined needs to be specified (e.g. "AND", "OR").- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Collection<Predicate>
getPredicates()
Returns all the predicates this compound predicate is made out of in an immutable collection.int
hashCode()
String
toString()
-
-
-
Method Detail
-
getPredicates
public Collection<Predicate> getPredicates()
Returns all the predicates this compound predicate is made out of in an immutable collection.- Returns:
- the immutable collection of child predicates.
-
-