KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jfun > parsec > ObjectPredicate


1 /*****************************************************************************
2  * Copyright (C) Zephyr Business Solutions Corp. All rights reserved. *
3  * ------------------------------------------------------------------------- *
4  * The software in this package is published under the terms of the BSD *
5  * style license a copy of which has been included with this distribution in *
6  * the LICENSE.txt file. *
7  *****************************************************************************/

8 /*
9  * Created on Dec 20, 2004
10  *
11  * Author Ben Yu
12  */

13 package jfun.parsec;
14
15 /**
16  * Maps an Object to a boolean value.
17  * @author Ben Yu
18  *
19  * Dec 20, 2004
20  */

21 public interface ObjectPredicate<T> extends java.io.Serializable JavaDoc{
22   /**
23    * Tests whether the given object satisfies the predicate.
24    * @param v the object to test.
25    * @return true if satisfies, false otherwise.
26    */

27   boolean isObject(T v);
28 }
29
Popular Tags