tecgraf.javautils.jexpression.util.function
Enum MathSingleFunctions

java.lang.Object
  extended by java.lang.Enum<MathSingleFunctions>
      extended by tecgraf.javautils.jexpression.util.function.MathSingleFunctions
All Implemented Interfaces:
Serializable, Comparable<MathSingleFunctions>

public enum MathSingleFunctions
extends Enum<MathSingleFunctions>

Conjunto de funções pré-definidas que recebem apenas um parâmetro do tipo Double.

Author:
Tecgraf

Enum Constant Summary
ABS
          Valor absoluto.
CBRT
          Raiz cúbica.
COS
          Cosseno.
EXP
          exp.
FLOOR
          Floor.
LOG
          log.
LOG10
          log10.
ROUND
          Valor arredondado.
SIN
          Seno.
SQRT
          Raiz quadrada.
TAN
          Tangente.
 
Method Summary
abstract  JExpressionSingleFunction<Double> getFunction()
          Função.
static MathSingleFunctions valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MathSingleFunctions[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

EXP

public static final MathSingleFunctions EXP
exp.


LOG10

public static final MathSingleFunctions LOG10
log10.


LOG

public static final MathSingleFunctions LOG
log.


ROUND

public static final MathSingleFunctions ROUND
Valor arredondado.


FLOOR

public static final MathSingleFunctions FLOOR
Floor.


ABS

public static final MathSingleFunctions ABS
Valor absoluto.


CBRT

public static final MathSingleFunctions CBRT
Raiz cúbica.


SQRT

public static final MathSingleFunctions SQRT
Raiz quadrada.


TAN

public static final MathSingleFunctions TAN
Tangente.


SIN

public static final MathSingleFunctions SIN
Seno.


COS

public static final MathSingleFunctions COS
Cosseno.

Method Detail

values

public static MathSingleFunctions[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (MathSingleFunctions c : MathSingleFunctions.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static MathSingleFunctions valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getFunction

public abstract JExpressionSingleFunction<Double> getFunction()
Função.

Returns:
função.


Copyright © 2007–2014 Tecgraf/PUC-Rio. All rights reserved.