public final class NullaryAnd extends Object
Tests
true
iff
none of its children test false
.
Note that by this definition, the "and" of
an empty collection of predicates tests true
.Constructor and Description |
---|
NullaryAnd()
Create a new NullaryAnd.
|
NullaryAnd(Iterable<NullaryPredicate> predicates)
Create a new NullaryAnd instance.
|
NullaryAnd(NullaryPredicate... predicates)
Create a new NullaryAnd instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addNullaryPredicate(NullaryPredicate p)
Add a NullaryPredicate to the list.
|
NullaryAnd |
and(NullaryPredicate p)
Add a Predicate.
|
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() |
boolean |
test()
Evaluate this predicate.
|
String |
toString() |
public NullaryAnd()
public NullaryAnd(Iterable<NullaryPredicate> predicates)
predicates
- the predicates to addpublic NullaryAnd(NullaryPredicate... predicates)
predicates
- the predicates to addpublic NullaryAnd and(NullaryPredicate p)
p
- Predicate 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.