Class Identity

All Implemented Interfaces:
PostfixMathCommandI, Serializable

public class Identity extends UnaryFunction
A Unary operator which does nothing, used for unary plus +x.
Author:
Richard Morris
See Also:
  • Constructor Details

    • Identity

      public Identity()
  • Method Details

    • eval

      public Object eval(Object arg)
      Description copied from class: UnaryFunction
      Evaluate the function
      Specified by:
      eval in class UnaryFunction
      Parameters:
      arg - the single argument passed in
      Returns:
      the result of the function