Class FSFloatConstraintImpl

java.lang.Object
org.apache.uima.cas.impl.FSFloatConstraintImpl
All Implemented Interfaces:
Serializable, FSConstraint, FSFloatConstraint

class FSFloatConstraintImpl extends Object implements FSFloatConstraint
Implement the FSFloatConstraint interface. Package private.
Version:
$Revision: 1.2 $
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private IntVector
     
    private static final int
     
    private static final int
     
    private static final int
     
    private static final int
     
    private static final int
     
    private static final long
     
    private Vector<Float>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    eq(float f)
    Require float value to be equal f.
    void
    geq(float f)
    Require float value to be greater than or equal to f.
    void
    gt(float f)
    Require float value to be greater than f.
    void
    leq(float f)
    Require float value to be less than or equal to f.
    void
    lt(float f)
    Require float value to be less than f.
    boolean
    match(float f)
    Check if float matches defined constraints.
     
    (package private) static final String
    toString(int comp)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • 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 interface FSFloatConstraint
      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 equal f.
      Specified by:
      eq in interface FSFloatConstraint
      Parameters:
      f - Matched value must be equal to this.
    • lt

      public void lt(float f)
      Require float value to be less than f.
      Specified by:
      lt in interface FSFloatConstraint
      Parameters:
      f - Matched value must be less than this.
    • leq

      public void leq(float f)
      Require float value to be less than or equal to f.
      Specified by:
      leq in interface FSFloatConstraint
      Parameters:
      f - Matched value must be less than or equal to this.
    • gt

      public void gt(float f)
      Require float value to be greater than f.
      Specified by:
      gt in interface FSFloatConstraint
      Parameters:
      f - Matched value must be greater than this.
    • geq

      public void geq(float f)
      Require float value to be greater than or equal to f.
      Specified by:
      geq in interface FSFloatConstraint
      Parameters:
      f - Matched value must be greater than or equal to this.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toString

      static final String toString(int comp)