Class OperationFactory.IndexAction

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int index  
    • Constructor Summary

      Constructors 
      Constructor Description
      IndexAction​(int index)  
    • Field Detail

      • index

        private int index
    • Constructor Detail

      • IndexAction

        public IndexAction​(int index)
    • 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