Class OperationFcts


  • public final class OperationFcts
    extends java.lang.Object
    Operation functions (Mathematics).
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String NEGATION_FUNCTION_NAME
      The name of the function used to perform negations
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Collection<Function> all()  
      static FunctionName getFunctionNameFromOperator​(char operator)
      Returns the name of the function associated to the specified operator.
      static char getOperator​(FunctionName function)
      Returns the operator associated to the specified function.
      static boolean isNegation​(FunctionName function)
      Checks if the function with the specified name is a negation.
      static boolean isOperation​(FunctionName function)
      Checks if the function with the specified name is an operation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • NEGATION_FUNCTION_NAME

        public static final java.lang.String NEGATION_FUNCTION_NAME
        The name of the function used to perform negations
        See Also:
        Constant Field Values
    • Method Detail

      • all

        public static java.util.Collection<Function> all()
      • isOperation

        public static boolean isOperation​(FunctionName function)
        Checks if the function with the specified name is an operation.
        Parameters:
        function - the function name
        Returns:
        true if the function is an operation, false otherwise.
      • isNegation

        public static boolean isNegation​(FunctionName function)
        Checks if the function with the specified name is a negation.
        Parameters:
        function - the function name
        Returns:
        true if the function is an negation, false otherwise.
      • getOperator

        public static char getOperator​(FunctionName function)
        Returns the operator associated to the specified function.
        Returns:
        the operator associated to the specified function.
      • getFunctionNameFromOperator

        public static FunctionName getFunctionNameFromOperator​(char operator)
        Returns the name of the function associated to the specified operator.
        Parameters:
        operator - the operator
        Returns:
        the name of the function associated to the specified operator