com.neeve.query.predicates
Interface Predicate<T>

All Superinterfaces:
com.google.common.base.Predicate<T>
All Known Subinterfaces:
IdxFieldPredicate<RECORD,T>

public interface Predicate<T>
extends com.google.common.base.Predicate<T>

Determines a true or false value for a given input and additionally serves as a factory for creating compound Predicates like and and or.


Method Summary
 Predicate<T> and(Collection<Predicate<T>> predicates)
          Create a new Predicate whose result is the logical "and" of this predicate and the provided predicates.
 Predicate<T> and(Predicate<T>... predicates)
          Create a new Predicate whose result is the logical "and" of this and the provided predicates.
 double getCost()
          The cost of applying the predicate.
 Predicate<T> or(Collection<Predicate<T>> predicates)
          Create a new Predicate whose result is the logical "or" of this predicate and the provided predicates.
 Predicate<T> or(Predicate<T>... predicates)
          Create a new Predicate whose result is the logical "or" of this predicate and the provided predicates.
 
Methods inherited from interface com.google.common.base.Predicate
apply, equals
 

Method Detail

and

Predicate<T> and(Predicate<T>... predicates)
Create a new Predicate whose result is the logical "and" of this and the provided predicates.

Parameters:
predicates - The Predicates to combined with this Predicate
Returns:
The new predicate

and

Predicate<T> and(Collection<Predicate<T>> predicates)
Create a new Predicate whose result is the logical "and" of this predicate and the provided predicates.

Parameters:
predicates - The Predicates to conbined with this Predicate
Returns:
The new predicate

or

Predicate<T> or(Predicate<T>... predicates)
Create a new Predicate whose result is the logical "or" of this predicate and the provided predicates.

Parameters:
predicates - The Predicates to conbined with this Predicate
Returns:
The new predicate

or

Predicate<T> or(Collection<Predicate<T>> predicates)
Create a new Predicate whose result is the logical "or" of this predicate and the provided predicates.

Parameters:
predicates - The Predicates to conbined with this Predicate
Returns:
The new predicate

getCost

double getCost()
The cost of applying the predicate.

Returns:
the cot


Copyright © 2016 Neeve Research, LLC. All Rights Reserved.