-
Notifications
You must be signed in to change notification settings - Fork 14
/
Expression.java
40 lines (32 loc) · 1.21 KB
/
Expression.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package cz.cvut.kbss.jopa.model.query.criteria;
import java.util.Collection;
public interface Expression<X> extends Selection<X>{
/**
* Create a predicate to test whether the expression is a member of the collection.
* @param values collection of values to be tested against
* @return predicate testing for membership
*/
Predicate in(Collection<?> values);
/**
* Create a predicate to test whether the expression is a member of the argument list.
* @param values expressions to be tested against
* @return predicate testing for membership
*/
Predicate in(Expression<?>... values);
/**
* Create a predicate to test whether the expression is a member of the argument list.
* @param values values to be tested against
* @return predicate testing for membership
*/
Predicate in(Object... values);
/**
* Create a predicate to test whether the expression is not null.
* @return predicate testing whether the expression is not null
*/
Predicate isNotNull();
/**
* Create a predicate to test whether the expression is null.
* @return predicate testing whether the expression is null
*/
Predicate isNull();
}