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 void
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.java.lang.String
toString()
(package private) static java.lang.String
toString(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: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
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toString
static final java.lang.String toString(int comp)
-
-