-
Notifications
You must be signed in to change notification settings - Fork 211
/
AbstractIntegerConditions.java
60 lines (53 loc) · 1.77 KB
/
AbstractIntegerConditions.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
package org.fluentlenium.core.conditions;
import org.fluentlenium.core.conditions.message.Message;
import org.fluentlenium.core.conditions.message.NotMessage;
public interface AbstractIntegerConditions<T, C extends AbstractIntegerConditions> extends Conditions<T> {
@Override
@Negation
C not();
/**
* Check that this is equal to given value
*
* @param value the value to compare with
* @return true if is equals, false otherwise
*/
@Message("is equal to {0}")
@NotMessage("is not equal to {0}")
boolean equalTo(int value);
/**
* Check that this is less than given value
*
* @param value the value to compare with
* @return true if less than, false otherwise
*/
@Message("is less than {0}")
@NotMessage("is not less than {0}")
boolean lessThan(int value);
/**
* Check that this is less than or equal given value
*
* @param value the value to compare with
* @return true if less than or equal, false otherwise
*/
@Message("is less than or equal to {0}")
@NotMessage("is not less than or equal to {0}")
boolean lessThanOrEqualTo(int value);
/**
* Check that this is greater than given value
*
* @param value the value to compare with
* @return true if greater than, false otherwise
*/
@Message("is greater than {0}")
@NotMessage("is not greater than {0}")
boolean greaterThan(int value);
/**
* Check that this is greater than or equal given value
*
* @param value the value to compare with
* @return true if greater than or equal, false otherwise
*/
@Message("is greater than or equal to {0}")
@NotMessage("is not greater than or equal to {0}")
boolean greaterThanOrEqualTo(int value);
}