org.tigris.gef.util
Interface Predicate

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
PredFigInRect, PredFigNodeInRect, PredicateEquals, PredicateStringMatch, PredicateTrue, PredicateType

public interface Predicate
extends java.io.Serializable

Interface for objects that act as predicate functions. For example, if you want to find an object in a Set that fits a certain condition, then write a (anonymous?) class that implements predicate and use it in Set.findSuchThat().


Method Summary
 boolean predicate(java.lang.Object obj)
           
 

Method Detail

predicate

boolean predicate(java.lang.Object obj)