Class 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 $
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private IntVector codes  
      private static int EQ  
      private static int GEQ  
      private static int GT  
      private static int LEQ  
      private static int LT  
      private static long serialVersionUID  
      private java.util.Vector<java.lang.Float> values  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      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.
      java.lang.String toString()  
      (package private) static java.lang.String toString​(int comp)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • FSFloatConstraintImpl

        FSFloatConstraintImpl()
    • Method Detail

      • 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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toString

        static final java.lang.String toString​(int comp)