org.fusesource.hawtdb.api
Class Predicates

java.lang.Object
  extended by org.fusesource.hawtdb.api.Predicates

public final class Predicates
extends java.lang.Object

Implements commonly used Predicates like AND, OR, <, > etc. etc.

Author:
Hiram Chirino

Constructor Summary
Predicates()
           
 
Method Summary
static
<Key> Predicate<Key>
all()
           
static
<Key> Predicate<Key>
and(java.util.List<Predicate<Key>> conditions)
           
static
<Key> Predicate<Key>
and(Predicate<Key>... conditions)
           
static
<Key> Predicate<Key>
gt(Key key)
           
static
<Key> Predicate<Key>
gte(Key key)
           
static
<Key> Predicate<Key>
lt(Key key)
           
static
<Key> Predicate<Key>
lte(Key key)
           
static
<Key> Predicate<Key>
lte(Key first, Key last)
           
static
<Key> Predicate<Key>
none()
           
static
<Key> Predicate<Key>
or(java.util.List<Predicate<Key>> conditions)
           
static
<Key> Predicate<Key>
or(Predicate<Key>... conditions)
           
static
<Key,Value>
IndexVisitor<Key,Value>
visitor(Predicate<Key> predicate)
           
 
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

none

public static <Key> Predicate<Key> none()

all

public static <Key> Predicate<Key> all()

or

public static <Key> Predicate<Key> or(Predicate<Key>... conditions)

or

public static <Key> Predicate<Key> or(java.util.List<Predicate<Key>> conditions)

and

public static <Key> Predicate<Key> and(Predicate<Key>... conditions)

and

public static <Key> Predicate<Key> and(java.util.List<Predicate<Key>> conditions)

gt

public static <Key> Predicate<Key> gt(Key key)

gte

public static <Key> Predicate<Key> gte(Key key)

lt

public static <Key> Predicate<Key> lt(Key key)

lte

public static <Key> Predicate<Key> lte(Key key)

lte

public static <Key> Predicate<Key> lte(Key first,
                                       Key last)

visitor

public static <Key,Value> IndexVisitor<Key,Value> visitor(Predicate<Key> predicate)


Copyright © 2009-2011 FuseSource, Corp.. All Rights Reserved.