Package org.apache.uima.cas.impl
Class FSFloatConstraintImpl
java.lang.Object
org.apache.uima.cas.impl.FSFloatConstraintImpl
- All Implemented Interfaces:
Serializable,FSConstraint,FSFloatConstraint
Implement the FSFloatConstraint interface. Package private.
- Version:
- $Revision: 1.2 $
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoideq(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.toString()(package private) static final StringtoString(int comp)
-
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
-
FSFloatConstraintImpl
FSFloatConstraintImpl()
-
-
Method Details
-
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
-
toString
-