Package cronapp.reports.j4c.commons
Enum J4CCalculation
- java.lang.Object
-
- java.lang.Enum<J4CCalculation>
-
- cronapp.reports.j4c.commons.J4CCalculation
-
- All Implemented Interfaces:
Serializable,Comparable<J4CCalculation>
public enum J4CCalculation extends Enum<J4CCalculation>
Opções de calculo para um determinado sumário.Created by arthemus on 01/07/16.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String[]names()static J4CCalculationvalueOf(String name)Returns the enum constant of this type with the specified name.static J4CCalculation[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AVERAGE
public static final J4CCalculation AVERAGE
-
COUNT
public static final J4CCalculation COUNT
-
NOTHING
public static final J4CCalculation NOTHING
-
SUM
public static final J4CCalculation SUM
-
-
Method Detail
-
values
public static J4CCalculation[] 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 (J4CCalculation c : J4CCalculation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static J4CCalculation 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 nameNullPointerException- if the argument is null
-
names
public static String[] names()
-
-