Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.objectstyle.ashwood.predicate
Class TernaryPredicate  view TernaryPredicate download TernaryPredicate.java

java.lang.Object
  extended byorg.objectstyle.ashwood.predicate.TernaryPredicate
All Implemented Interfaces:
org.apache.commons.collections.Predicate

public class TernaryPredicate
extends java.lang.Object
implements org.apache.commons.collections.Predicate


Field Summary
private  org.apache.commons.collections.Predicate elsePredicate
           
private  org.apache.commons.collections.Predicate ifPredicate
           
private  org.apache.commons.collections.Predicate thenPredicate
           
 
Constructor Summary
TernaryPredicate(org.apache.commons.collections.Predicate ifPred, org.apache.commons.collections.Predicate thenPred, org.apache.commons.collections.Predicate elsePred)
           
 
Method Summary
 boolean evaluate(java.lang.Object parameter)
          Returns true if the input object matches this predicate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ifPredicate

private org.apache.commons.collections.Predicate ifPredicate

thenPredicate

private org.apache.commons.collections.Predicate thenPredicate

elsePredicate

private org.apache.commons.collections.Predicate elsePredicate
Constructor Detail

TernaryPredicate

public TernaryPredicate(org.apache.commons.collections.Predicate ifPred,
                        org.apache.commons.collections.Predicate thenPred,
                        org.apache.commons.collections.Predicate elsePred)
Method Detail

evaluate

public boolean evaluate(java.lang.Object parameter)
Description copied from interface: org.apache.commons.collections.Predicate
Returns true if the input object matches this predicate.

Specified by:
evaluate in interface org.apache.commons.collections.Predicate