ariba.util.core
Class OrPredicate<T>

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

public class OrPredicate<T>
extends CompositePredicate<T>

Implements a boolean or of the contained set of predicates


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

Constructor Detail

OrPredicate

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

evaluate

public boolean evaluate(T t)
For or to be true, any predicate must be true. Base-case of 0 predicates is defined as false

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.