ariba.util.core
Class AndPredicate<T>

java.lang.Object
  extended by ariba.util.core.Predicate<T>
      extended by ariba.util.core.CompositePredicate<T>
          extended by ariba.util.core.AndPredicate<T>
Type Parameters:
T -

public class AndPredicate<T>
extends CompositePredicate<T>

Implements a boolean and of the contained set of predicates


Nested Class Summary
 
Nested classes/interfaces inherited from class ariba.util.core.Predicate
Predicate.Constant<T>
 
Constructor Summary
AndPredicate(java.util.Set<Predicate<T>> predicates)
           
 
Method Summary
 boolean evaluate(T t)
          For and to be true, all predicates must be true.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AndPredicate

public AndPredicate(java.util.Set<Predicate<T>> predicates)
Method Detail

evaluate

public boolean evaluate(T t)
For and to be true, all predicates must be true. Base-case of 0 predicates is defined as true

Specified by:
evaluate in class CompositePredicate<T>
Parameters:
t - of type T
Returns:


AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.