com.banda.function.domain
Enum OperationType

java.lang.Object
  extended by java.lang.Enum<OperationType>
      extended by com.banda.function.domain.OperationType
All Implemented Interfaces:
Serializable, Comparable<OperationType>

public enum OperationType
extends Enum<OperationType>

Since:
2012
Author:
© Peter Banda

Enum Constant Summary
Abs
           
Add
           
Cos
           
Div
           
Eq
           
Gr
           
Lt
           
Max
           
Min
           
Mul
           
Pow
           
Rand
           
Sgn
           
Sin
           
Sq
           
Sqrt
           
Sub
           
 
Method Summary
static OperationType fromRepresentation(String repr)
           
 String getRepresentation()
           
 boolean isFunction()
           
 String toString()
           
static OperationType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static OperationType[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Add

public static final OperationType Add

Sub

public static final OperationType Sub

Mul

public static final OperationType Mul

Div

public static final OperationType Div

Pow

public static final OperationType Pow

Gr

public static final OperationType Gr

Lt

public static final OperationType Lt

Eq

public static final OperationType Eq

Sgn

public static final OperationType Sgn

Abs

public static final OperationType Abs

Sq

public static final OperationType Sq

Sqrt

public static final OperationType Sqrt

Min

public static final OperationType Min

Max

public static final OperationType Max

Rand

public static final OperationType Rand

Sin

public static final OperationType Sin

Cos

public static final OperationType Cos
Method Detail

values

public static OperationType[] 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 (OperationType c : OperationType.values())
    System.out.println(c);

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

valueOf

public static OperationType 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

getRepresentation

public String getRepresentation()

fromRepresentation

public static OperationType fromRepresentation(String repr)

isFunction

public boolean isFunction()

toString

public String toString()
Overrides:
toString in class Enum<OperationType>


Copyright © 2013. All Rights Reserved.