Package org.apache.uima.cas.impl
Class FSIntConstraintImpl
- java.lang.Object
-
- org.apache.uima.cas.impl.FSIntConstraintImpl
-
- All Implemented Interfaces:
java.io.Serializable,FSConstraint,FSIntConstraint
class FSIntConstraintImpl extends java.lang.Object implements FSIntConstraint
Implement the FSIntConstraint interface. Package private.- Version:
- $Revision: 1.1 $
-
-
Constructor Summary
Constructors Constructor Description FSIntConstraintImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voideq(int i)Require int value to be equali.voidgeq(int i)Require int value to be greater than or equal toi.voidgt(int i)Require int value to be greater thani.voidleq(int i)Require int value to be less than or equal toi.voidlt(int i)Require int value to be less thani.booleanmatch(int j)Check if integer matches defined constraints.java.lang.StringtoString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
LT
private static final int LT
- See Also:
- Constant Field Values
-
LEQ
private static final int LEQ
- See Also:
- Constant Field Values
-
EQ
private static final int EQ
- See Also:
- Constant Field Values
-
GEQ
private static final int GEQ
- See Also:
- Constant Field Values
-
GT
private static final int GT
- See Also:
- Constant Field Values
-
codes
private IntVector codes
-
values
private IntVector values
-
-
Method Detail
-
match
public boolean match(int j)
Description copied from interface:FSIntConstraintCheck if integer matches defined constraints.- Specified by:
matchin interfaceFSIntConstraint- Parameters:
j- The int to be checked.- Returns:
trueiff the int satisfies the constraints.
-
eq
public void eq(int i)
Require int value to be equali.- Specified by:
eqin 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:
ltin 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:
leqin 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:
gtin 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:
geqin interfaceFSIntConstraint- Parameters:
i- Matched value must be greater than or equal to this.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-