public class OrPredicate extends ArrayPredicate
Constructor and Description |
---|
OrPredicate(Predicate... predicates) |
Modifier and Type | Method and Description |
---|---|
Predicate |
create(Predicate... predicates)
Factory method.
|
boolean |
evaluate(Resource resource)
Evaluate the predicate for the given resource.
|
String |
getOperator() |
static Predicate |
instance(Predicate... predicates) |
static Predicate |
of(Iterable<? extends Predicate> predicates) |
accept, equals, getPredicates, getPropertyIds, hashCode, toString
public OrPredicate(Predicate... predicates)
public Predicate create(Predicate... predicates)
ArrayPredicate
create
in class ArrayPredicate
predicates
- the predicate arraypublic boolean evaluate(Resource resource)
Predicate
resource
- the resource to evaluate the predicate againstpublic String getOperator()
getOperator
in class ArrayPredicate
Copyright © 2022 Apache Software Foundation. All rights reserved.