net.sf.dynamicreports.report.constant
Enum Calculation

java.lang.Object
  extended by java.lang.Enum<Calculation>
      extended by net.sf.dynamicreports.report.constant.Calculation
All Implemented Interfaces:
Serializable, Comparable<Calculation>

public enum Calculation
extends Enum<Calculation>

Author:
Ricardo Mariaca (r.mariaca@dynamicreports.org)

Enum Constant Summary
AVERAGE
           
COUNT
           
DISTINCT_COUNT
           
FIRST
           
HIGHEST
           
LOWEST
           
NOTHING
           
STANDARD_DEVIATION
           
SUM
           
VARIANCE
           
 
Method Summary
static Calculation valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Calculation[] 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

NOTHING

public static final Calculation NOTHING

COUNT

public static final Calculation COUNT

SUM

public static final Calculation SUM

AVERAGE

public static final Calculation AVERAGE

LOWEST

public static final Calculation LOWEST

HIGHEST

public static final Calculation HIGHEST

STANDARD_DEVIATION

public static final Calculation STANDARD_DEVIATION

VARIANCE

public static final Calculation VARIANCE

FIRST

public static final Calculation FIRST

DISTINCT_COUNT

public static final Calculation DISTINCT_COUNT
Method Detail

values

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

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

valueOf

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


Copyright © 2010-2014. All Rights Reserved.