org.apache.jackrabbit.commons.predicate
Interface Predicate

All Known Implementing Classes:
DeclaringTypePredicate, DepthPredicate, IsMandatoryPredicate, IsNodePredicate, NamePredicate, NodeTypePredicate, NtFilePredicate, PathPredicate, RowPredicate

public interface Predicate

Interface for object predicates, i.e. functions that evaluate a given object to a boolean value.


Field Summary
static Predicate FALSE
          Constant predicate that returns false for all objects.
static Predicate TRUE
          Constant predicate that returns true for all objects.
 
Method Summary
 boolean evaluate(Object object)
          Evaluates the predicate for the given object.
 

Field Detail

TRUE

static final Predicate TRUE
Constant predicate that returns true for all objects.


FALSE

static final Predicate FALSE
Constant predicate that returns false for all objects.

Method Detail

evaluate

boolean evaluate(Object object)
Evaluates the predicate for the given object.

Parameters:
object - some object
Returns:
predicate result


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.