public final class NullaryOr extends Object
Tests
true
iff
at least one of its children test true
.
Note that by this definition, the "or" of
an empty collection of predicates tests false
.Constructor and Description |
---|
NullaryOr()
Create a new NullaryOr.
|
NullaryOr(Iterable<NullaryPredicate> predicates)
Create a new NullaryOr instance.
|
NullaryOr(NullaryPredicate... predicates)
Create a new NullaryOr instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addNullaryPredicate(NullaryPredicate p)
Add a NullaryPredicate to the list.
|
boolean |
equals(Object obj) |
protected List<NullaryPredicate> |
getNullaryPredicateList()
Get the "live" list of
NullaryPredicate s. |
protected boolean |
getNullaryPredicateListEquals(org.apache.commons.functor.core.composite.BaseNullaryPredicateList that)
Learn whether the list of another BaseNullaryPredicateList is equal to my list.
|
protected int |
getNullaryPredicateListHashCode()
Get a hashCode for my list.
|
protected String |
getNullaryPredicateListToString()
Get a toString for my list.
|
int |
hashCode() |
NullaryOr |
or(NullaryPredicate p)
Fluently add a NullaryPredicate.
|
boolean |
test()
Evaluate this predicate.
|
String |
toString() |
public NullaryOr()
public NullaryOr(Iterable<NullaryPredicate> predicates)
predicates
- predicates have to be put in nullary or condition.public NullaryOr(NullaryPredicate... predicates)
predicates
- predicates have to be put in nullary or condition.public NullaryOr or(NullaryPredicate p)
p
- NullaryPredicate to addpublic boolean test()
public int hashCode()
protected void addNullaryPredicate(NullaryPredicate p)
p
- NullaryPredicate to addprotected List<NullaryPredicate> getNullaryPredicateList()
NullaryPredicate
s.protected boolean getNullaryPredicateListEquals(org.apache.commons.functor.core.composite.BaseNullaryPredicateList that)
that
- BaseNullaryPredicateList to testprotected int getNullaryPredicateListHashCode()
protected String getNullaryPredicateListToString()
Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.