Package com.singularsys.jep.functions

# Class Not

java.lang.Object
com.singularsys.jep.functions.PostfixMathCommand
com.singularsys.jep.functions.UnaryFunction
com.singularsys.jep.functions.Not

All Implemented Interfaces:
  `PostfixMathCommandI`, `Serializable`

public class Not extends UnaryFunction
Implementation of the not function.

Since:
  3.0.0 now returns boolean
See Also:
  - Serialized Form

- ## Nested Class Summary

  ## Nested classes/interfaces inherited from class com.singularsys.jep.functions.UnaryFunction

  `UnaryFunction.FunctionWithException<T>`

- ## Field Summary

  ### Fields inherited from class com.singularsys.jep.functions.PostfixMathCommand

  `curNumberOfParameters, description, name, NaN, numberOfParameters`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Not()`
  Standard Constructor which allows Number and Boolean arguments
  `Not(boolean disallowNumbers)`
  Constructor which restricts type of arguments.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Object`
  `eval(Object arg)`
  Evaluate the function

  ### Methods inherited from class com.singularsys.jep.functions.UnaryFunction

  `instanceOf, instanceOf, instanceOf, instanceOf, run`

  ### Methods inherited from class com.singularsys.jep.functions.PostfixMathCommand

  `asArray, asBool, asDouble, asInt, asLong, asStrictInt, asString, asType, checkNumberOfParameters, getDescription, getDescription, getDescriptionWithType, getName, getNumberOfParameters, setCurNumberOfParameters, setDescription, setName, toString, toString`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### Not

    public Not()
    Standard Constructor which allows Number and Boolean arguments

  - ### Not

    public Not(boolean disallowNumbers)
    Constructor which restricts type of arguments.
    Parameters:
      `disallowNumbers` - if true Number arguments will raise exceptions, otherwise as the Standard constructor.

- ## Method Details

  - ### eval

    public Object eval(Object arg) throws EvaluationException
    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
    Throws:
      `EvaluationException` - on error