com.hazelcast.query
Class Predicates

java.lang.Object
  extended by com.hazelcast.query.Predicates

public final class Predicates
extends Object

A utility class to create Predicate instances.


Nested Class Summary
static class Predicates.AbstractPredicate
          Provides some functionality for some predicates such as Between, In.
static class Predicates.AndPredicate
          And Predicate
static class Predicates.BetweenPredicate
          Between Predicate
static class Predicates.EqualPredicate
          Equal Predicate
static class Predicates.GreaterLessPredicate
          Greater Less Predicate
static class Predicates.ILikePredicate
          Ilike Predicate
static class Predicates.InPredicate
          In Predicate
static class Predicates.LikePredicate
          Like Predicate
static class Predicates.NotEqualPredicate
          Not Equal Predicate
static class Predicates.NotPredicate
          Not Predicate
static class Predicates.OrPredicate
          Or Predicate
static class Predicates.RegexPredicate
          Regex Predicate
 
Method Summary
static Predicate and(Predicate... predicates)
           
static Predicate between(String attribute, Comparable from, Comparable to)
           
static Predicate equal(String attribute, Comparable y)
           
static Predicate greaterEqual(String x, Comparable y)
           
static Predicate greaterThan(String x, Comparable y)
           
static Predicate ilike(String attribute, String pattern)
           
static Predicate in(String attribute, Comparable... values)
           
static Predicate instanceOf(Class klass)
           
static Predicate lessEqual(String x, Comparable y)
           
static Predicate lessThan(String x, Comparable y)
           
static Predicate like(String attribute, String pattern)
           
static Predicate not(Predicate predicate)
           
static Predicate notEqual(String attribute, Comparable y)
           
static Predicate or(Predicate... predicates)
          Or predicate
static Predicate regex(String attribute, String pattern)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instanceOf

public static Predicate instanceOf(Class klass)

and

public static Predicate and(Predicate... predicates)

not

public static Predicate not(Predicate predicate)

or

public static Predicate or(Predicate... predicates)
Or predicate

Parameters:
predicates -
Returns:

notEqual

public static Predicate notEqual(String attribute,
                                 Comparable y)

equal

public static Predicate equal(String attribute,
                              Comparable y)

like

public static Predicate like(String attribute,
                             String pattern)

ilike

public static Predicate ilike(String attribute,
                              String pattern)

regex

public static Predicate regex(String attribute,
                              String pattern)

greaterThan

public static Predicate greaterThan(String x,
                                    Comparable y)

greaterEqual

public static Predicate greaterEqual(String x,
                                     Comparable y)

lessThan

public static Predicate lessThan(String x,
                                 Comparable y)

lessEqual

public static Predicate lessEqual(String x,
                                  Comparable y)

between

public static Predicate between(String attribute,
                                Comparable from,
                                Comparable to)

in

public static Predicate in(String attribute,
                           Comparable... values)


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.