com.atlassian.jira.util
Class EvaluateAllPredicate<T>

java.lang.Object
  extended by com.atlassian.jira.util.EvaluateAllPredicate<T>
All Implemented Interfaces:
Predicate<T>
Direct Known Subclasses:
JqlVersionPredicate

public class EvaluateAllPredicate<T>
extends Object
implements Predicate<T>

A predicate that checks that all the given predicates evaulate to true for the specified input. It is fail fast.

Since:
v4.0

Constructor Summary
EvaluateAllPredicate(Predicate<T> first, Predicate<T>... predicates)
           
 
Method Summary
 boolean evaluate(T input)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EvaluateAllPredicate

public EvaluateAllPredicate(Predicate<T> first,
                            Predicate<T>... predicates)
Method Detail

evaluate

public boolean evaluate(T input)
Specified by:
evaluate in interface Predicate<T>


Copyright © 2002-2012 Atlassian. All Rights Reserved.