-
Notifications
You must be signed in to change notification settings - Fork 225
/
ReferenceComparableStringField.java
80 lines (73 loc) · 2.87 KB
/
ReferenceComparableStringField.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
package com.speedment.api.field;
import com.speedment.api.annotation.Api;
import com.speedment.api.field.builders.StringPredicateBuilder;
/**
*
* @author pemi
* @param <ENTITY>
*/
@Api(version = "2.1")
public interface ReferenceComparableStringField<ENTITY> extends ReferenceComparableField<ENTITY, String> {
/**
* Returns a {@link java.util.function.Predicate} that will evaluate to
* {@code true}, if and only if this Field is <em>equal</em> to the given
* value while ignoring the case of the Strings that are compared.
*
* @param value to compare
* @return a Predicate that will evaluate to {@code true}, if and only if
* this Field is <em>equal</em> to the given value while ignoring the case
* of the Strings that are compared
*
* @see String#compareToIgnoreCase(java.lang.String)
*/
StringPredicateBuilder<ENTITY> equalIgnoreCase(String value);
/**
* Returns a {@link java.util.function.Predicate} that will evaluate to
* {@code true}, if and only if this Field is <em>not equal</em> to the
* given value while ignoring the case of the Strings that are compared.
*
* @param value to compare
* @return a Predicate that will evaluate to {@code true}, if and only if
* this Field is <em>not equal</em> to the given value while ignoring the
* case of the Strings that are compared
*
* @see String#compareToIgnoreCase(java.lang.String)
*/
StringPredicateBuilder<ENTITY> notEqualIgnoreCase(String value);
/**
* Returns a {@link java.util.function.Predicate} that will evaluate to
* {@code true}, if and only if this Field <em>starts with</em> the given
* value.
*
* @param value to compare
* @return a Predicate that will evaluate to {@code true}, if and only if
* this Field <em>starts with</em> the given value
*
* @see String#startsWith(java.lang.String)
*/
StringPredicateBuilder<ENTITY> startsWith(String value);
/**
* Returns a {@link java.util.function.Predicate} that will evaluate to
* {@code true}, if and only if this Field <em>ends with</em> the given
* value.
*
* @param value to compare
* @return a Predicate that will evaluate to {@code true}, if and only if
* this Field <em>ends with</em> the given value
*
* @see String#endsWith(java.lang.String)
*/
StringPredicateBuilder<ENTITY> endsWith(String value);
/**
* Returns a {@link java.util.function.Predicate} that will evaluate to
* {@code true}, if and only if this Field <em>contains</em> the given
* value.
*
* @param value to compare
* @return a Predicate that will evaluate to {@code true}, if and only if
* this Field <em>contains</em> the given value
*
* @see String#endsWith(java.lang.String)
*/
StringPredicateBuilder<ENTITY> contains(String value);
}