KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > uk > co > jezuk > mango > unarypredicates > And


1 package uk.co.jezuk.mango.unarypredicates;
2
3 /**
4  * @version $Id: And.java 55 2002-06-12 11:18:03Z jez $
5  */

6 public class And implements uk.co.jezuk.mango.Predicate
7 {
8   public And(uk.co.jezuk.mango.Predicate pred1, uk.co.jezuk.mango.Predicate pred2) { p1_ = pred1; p2_ = pred2; }
9   public boolean test(Object JavaDoc x) { return p1_.test(x) && p2_.test(x); }
10
11   private uk.co.jezuk.mango.Predicate p1_;
12   private uk.co.jezuk.mango.Predicate p2_;
13 } // And
14
Popular Tags