org.apache.chemistry.opencmis.jcr.util
Interface Predicate<T>


public interface Predicate<T>

Interface for predicates of type T, i.e. functions from T to boolean.


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(T t)
          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(T t)
Evaluates the predicate for the given object.

Parameters:
t - some object
Returns:
predicate result


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.