Enum AlgorithmImageMath.Operator
- java.lang.Object
-
- java.lang.Enum<AlgorithmImageMath.Operator>
-
- gov.nih.mipav.model.algorithms.utilities.AlgorithmImageMath.Operator
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AlgorithmImageMath.Operator>
- Enclosing class:
- AlgorithmImageMath
public static enum AlgorithmImageMath.Operator extends java.lang.Enum<AlgorithmImageMath.Operator>
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Operator(int legacyNum, java.lang.String name, java.lang.String shortOp)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getLegacyNum()
static AlgorithmImageMath.Operator
getOperatorFromLegacyNum(int legacyNum)
java.lang.String
getShortOp()
java.lang.String
toString()
static AlgorithmImageMath.Operator
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AlgorithmImageMath.Operator[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ABSOLUTE_VALUE
public static final AlgorithmImageMath.Operator ABSOLUTE_VALUE
-
ADD
public static final AlgorithmImageMath.Operator ADD
-
AVERAGE
public static final AlgorithmImageMath.Operator AVERAGE
-
CONSTANT
public static final AlgorithmImageMath.Operator CONSTANT
-
DIVIDE
public static final AlgorithmImageMath.Operator DIVIDE
-
LOG
public static final AlgorithmImageMath.Operator LOG
-
MULTIPLY
public static final AlgorithmImageMath.Operator MULTIPLY
-
SQUARE
public static final AlgorithmImageMath.Operator SQUARE
-
SQUARE_ROOT
public static final AlgorithmImageMath.Operator SQUARE_ROOT
-
SUBTRACT
public static final AlgorithmImageMath.Operator SUBTRACT
-
SUM
public static final AlgorithmImageMath.Operator SUM
-
INVERSE
public static final AlgorithmImageMath.Operator INVERSE
-
-
Method Detail
-
values
public static AlgorithmImageMath.Operator[] 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 (AlgorithmImageMath.Operator c : AlgorithmImageMath.Operator.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AlgorithmImageMath.Operator valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<AlgorithmImageMath.Operator>
-
getLegacyNum
public int getLegacyNum()
-
getShortOp
public java.lang.String getShortOp()
-
getOperatorFromLegacyNum
public static AlgorithmImageMath.Operator getOperatorFromLegacyNum(int legacyNum)
-
-