org.ehcache.function
Class Predicates

java.lang.Object
  extended by org.ehcache.function.Predicates

public final class Predicates
extends java.lang.Object

Utility class for getting predefined Predicate instances.


Method Summary
static
<T> Predicate<T>
all()
          A predicate that matches all values.
static
<T> Predicate<T>
none()
          A predicate that matches no value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

all

public static <T> Predicate<T> all()
A predicate that matches all values.

Type Parameters:
T - the predicate value type
Returns:
the all predicate

none

public static <T> Predicate<T> none()
A predicate that matches no value.

Type Parameters:
T - the predicate value type
Returns:
the none predicate