Package org.apache.uima.cas.impl
Class FSFloatConstraintImpl
- java.lang.Object
-
- org.apache.uima.cas.impl.FSFloatConstraintImpl
-
- All Implemented Interfaces:
java.io.Serializable,FSConstraint,FSFloatConstraint
class FSFloatConstraintImpl extends java.lang.Object implements FSFloatConstraint
Implement the FSFloatConstraint interface. Package private.- Version:
- $Revision: 1.2 $
-
-
Constructor Summary
Constructors Constructor Description FSFloatConstraintImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voideq(float f)Require float value to be equalf.voidgeq(float f)Require float value to be greater than or equal tof.voidgt(float f)Require float value to be greater thanf.voidleq(float f)Require float value to be less than or equal tof.voidlt(float f)Require float value to be less thanf.booleanmatch(float f)Check if float matches defined constraints.java.lang.StringtoString()(package private) static java.lang.StringtoString(int comp)
-
-
-
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 java.util.Vector<java.lang.Float> values
-
-
Method Detail
-
match
public boolean match(float f)
Description copied from interface:FSFloatConstraintCheck if float matches defined constraints.- Specified by:
matchin interfaceFSFloatConstraint- Parameters:
f- The float to be checked.- Returns:
trueiff the float satisfies the constraints.
-
eq
public void eq(float f)
Require float value to be equalf.- Specified by:
eqin interfaceFSFloatConstraint- Parameters:
f- Matched value must be equal to this.
-
lt
public void lt(float f)
Require float value to be less thanf.- Specified by:
ltin interfaceFSFloatConstraint- Parameters:
f- Matched value must be less than this.
-
leq
public void leq(float f)
Require float value to be less than or equal tof.- Specified by:
leqin interfaceFSFloatConstraint- Parameters:
f- Matched value must be less than or equal to this.
-
gt
public void gt(float f)
Require float value to be greater thanf.- Specified by:
gtin interfaceFSFloatConstraint- Parameters:
f- Matched value must be greater than this.
-
geq
public void geq(float f)
Require float value to be greater than or equal tof.- Specified by:
geqin interfaceFSFloatConstraint- Parameters:
f- Matched value must be greater than or equal to this.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toString
static final java.lang.String toString(int comp)
-
-