Class FSIntConstraintImpl

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

class FSIntConstraintImpl extends Object implements FSIntConstraint
Implement the FSIntConstraint interface. Package private.
Version:
$Revision: 1.1 $
  • 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 IntVector
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    eq(int i)
    Require int value to be equal i.
    void
    geq(int i)
    Require int value to be greater than or equal to i.
    void
    gt(int i)
    Require int value to be greater than i.
    void
    leq(int i)
    Require int value to be less than or equal to i.
    void
    lt(int i)
    Require int value to be less than i.
    boolean
    match(int j)
    Check if integer matches defined constraints.
     

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • FSIntConstraintImpl

      FSIntConstraintImpl()
  • Method Details

    • match

      public boolean match(int j)
      Description copied from interface: FSIntConstraint
      Check if integer matches defined constraints.
      Specified by:
      match in interface FSIntConstraint
      Parameters:
      j - The int to be checked.
      Returns:
      true iff the int satisfies the constraints.
    • eq

      public void eq(int i)
      Require int value to be equal i.
      Specified by:
      eq in interface FSIntConstraint
      Parameters:
      i - Matched value must be equal to this.
    • lt

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

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

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

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

      public String toString()
      Overrides:
      toString in class Object