com.google.visualization.datasource.query
Enum AggregationType

java.lang.Object
  extended by java.lang.Enum<AggregationType>
      extended by com.google.visualization.datasource.query.AggregationType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<AggregationType>

public enum AggregationType
extends java.lang.Enum<AggregationType>

Enumeration of all possible aggregation types.

Author:
Yoav G., Yonatan B.Y.

Enum Constant Summary
AVG
           
COUNT
           
MAX
           
MIN
           
SUM
           
 
Method Summary
static AggregationType getByCode(java.lang.String code)
          Returns the correct AggregationType for a given code.
 java.lang.String getCode()
          Get this AggregationType code.
static AggregationType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static AggregationType[] 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

SUM

public static final AggregationType SUM

COUNT

public static final AggregationType COUNT

MIN

public static final AggregationType MIN

MAX

public static final AggregationType MAX

AVG

public static final AggregationType AVG
Method Detail

values

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

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

valueOf

public static AggregationType 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 name
java.lang.NullPointerException - if the argument is null

getCode

public java.lang.String getCode()
Get this AggregationType code.

Returns:
The AggregationType code.

getByCode

public static AggregationType getByCode(java.lang.String code)
Returns the correct AggregationType for a given code.

Parameters:
code - The code for a type.
Returns:
The correct AggregationType for the given code.


Copyright © 2009 Google. All Rights Reserved.