Package org.apache.uima.cas.impl
Class FSIntConstraintImpl
java.lang.Object
org.apache.uima.cas.impl.FSIntConstraintImpl
- All Implemented Interfaces:
Serializable
,FSConstraint
,FSIntConstraint
Implement the FSIntConstraint interface. Package private.
- Version:
- $Revision: 1.1 $
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
eq
(int i) Require int value to be equali
.void
geq
(int i) Require int value to be greater than or equal toi
.void
gt
(int i) Require int value to be greater thani
.void
leq
(int i) Require int value to be less than or equal toi
.void
lt
(int i) Require int value to be less thani
.boolean
match
(int j) Check if integer matches defined constraints.toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
LT
private static final int LT- See Also:
-
LEQ
private static final int LEQ- See Also:
-
EQ
private static final int EQ- See Also:
-
GEQ
private static final int GEQ- See Also:
-
GT
private static final int GT- See Also:
-
codes
-
values
-
-
Constructor Details
-
FSIntConstraintImpl
FSIntConstraintImpl()
-
-
Method Details
-
match
public boolean match(int j) Description copied from interface:FSIntConstraint
Check if integer matches defined constraints.- Specified by:
match
in interfaceFSIntConstraint
- Parameters:
j
- The int to be checked.- Returns:
true
iff the int satisfies the constraints.
-
eq
public void eq(int i) Require int value to be equali
.- Specified by:
eq
in interfaceFSIntConstraint
- Parameters:
i
- Matched value must be equal to this.
-
lt
public void lt(int i) Require int value to be less thani
.- Specified by:
lt
in interfaceFSIntConstraint
- Parameters:
i
- Matched value must be less than this.
-
leq
public void leq(int i) Require int value to be less than or equal toi
.- Specified by:
leq
in interfaceFSIntConstraint
- Parameters:
i
- Matched value must be less than or equal to this.
-
gt
public void gt(int i) Require int value to be greater thani
.- Specified by:
gt
in interfaceFSIntConstraint
- Parameters:
i
- Matched value must be greater than this.
-
geq
public void geq(int i) Require int value to be greater than or equal toi
.- Specified by:
geq
in interfaceFSIntConstraint
- Parameters:
i
- Matched value must be greater than or equal to this.
-
toString
-