Class OperationFactory.IntegerRangeAction

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int max  
      private int min  
    • Constructor Summary

      Constructors 
      Constructor Description
      IntegerRangeAction​(int min, int max)  
    • Field Detail

      • min

        private int min
      • max

        private int max
    • Constructor Detail

      • IntegerRangeAction

        IntegerRangeAction​(int min,
                           int max)
    • Method Detail

      • operate

        public java.lang.Object operate​(java.lang.Object value)
        Description copied from interface: Operation
        Apply some function to a value and return the result.
        Parameters:
        value - value to apply function to
        Returns:
        result of function
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object