org.neo4j.helpers
Class Predicates

java.lang.Object
  extended by org.neo4j.helpers.Predicates

public class Predicates
extends Object

Common predicates


Nested Class Summary
static class Predicates.AndPredicate<T>
           
static class Predicates.OrPredicate<T>
           
 
Constructor Summary
Predicates()
           
 
Method Summary
static
<T> Predicates.AndPredicate<T>
and(Iterable<Predicate<T>> predicates)
           
static
<T> Predicates.AndPredicate<T>
and(Predicate<T>... predicates)
           
static
<T> Predicate<T>
equalTo(T allowed)
           
static
<T> Predicate<T>
in(Iterable<T> allowed)
           
static
<T> Predicate<T>
in(T... allowed)
           
static
<T> Predicate<T>
not(Predicate<T> specification)
           
static
<T> Predicate<T>
notNull()
           
static
<T> Predicates.OrPredicate<T>
or(Iterable<Predicate<T>> predicates)
           
static
<T> Predicates.OrPredicate<T>
or(Predicate<T>... predicates)
           
static
<FROM,TO> Predicate<FROM>
translate(Function<FROM,TO> function, Predicate<? super TO> specification)
           
static
<T> Predicate<T>
TRUE()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Predicates

public Predicates()
Method Detail

TRUE

public static <T> Predicate<T> TRUE()

not

public static <T> Predicate<T> not(Predicate<T> specification)

and

public static <T> Predicates.AndPredicate<T> and(Predicate<T>... predicates)

and

public static <T> Predicates.AndPredicate<T> and(Iterable<Predicate<T>> predicates)

or

public static <T> Predicates.OrPredicate<T> or(Predicate<T>... predicates)

or

public static <T> Predicates.OrPredicate<T> or(Iterable<Predicate<T>> predicates)

equalTo

public static <T> Predicate<T> equalTo(T allowed)

in

public static <T> Predicate<T> in(T... allowed)

in

public static <T> Predicate<T> in(Iterable<T> allowed)

notNull

public static <T> Predicate<T> notNull()

translate

public static <FROM,TO> Predicate<FROM> translate(Function<FROM,TO> function,
                                                  Predicate<? super TO> specification)


Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.