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 TypeMethodDescriptionvoid
eq
(float f) Require float value to be equalf
.void
geq
(float f) Require float value to be greater than or equal tof
.void
gt
(float f) Require float value to be greater thanf
.void
leq
(float f) Require float value to be less than or equal tof
.void
lt
(float f) Require float value to be less thanf
.boolean
match
(float f) Check if float matches defined constraints.toString()
(package private) static final String
toString
(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:FSFloatConstraint
Check if float matches defined constraints.- Specified by:
match
in interfaceFSFloatConstraint
- Parameters:
f
- The float to be checked.- Returns:
true
iff the float satisfies the constraints.
-
eq
public void eq(float f) Require float value to be equalf
.- Specified by:
eq
in 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:
lt
in 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:
leq
in 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:
gt
in 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:
geq
in interfaceFSFloatConstraint
- Parameters:
f
- Matched value must be greater than or equal to this.
-
toString
-
toString
-