Enum AggregationType

java.lang.Object
java.lang.Enum<AggregationType>
com.ibm.watson.discovery.query.AggregationType
All Implemented Interfaces:
Serializable, Comparable<AggregationType>, java.lang.constant.Constable

public enum AggregationType
extends Enum<AggregationType>
Aggregation types.
  • Enum Constant Details

  • Method Details

    • values

      public static AggregationType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static AggregationType 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
    • getName

      public String getName()
      Gets the name.
      Returns:
      the name
    • valueOfIgnoreCase

      public static AggregationType valueOfIgnoreCase​(String value) throws IllegalArgumentException
      Value of ignore case.
      Parameters:
      value - the value
      Returns:
      the aggregation type
      Throws:
      IllegalArgumentException - the illegal argument exception
    • toString

      public String toString()
      To string.
      Overrides:
      toString in class Enum<AggregationType>
      Returns:
      the string