Enum Unit

java.lang.Object
java.lang.Enum<Unit>
org.allGraphQLCases.client2.Unit
All Implemented Interfaces:
Serializable, Comparable<Unit>, java.lang.constant.Constable

public enum Unit extends Enum<Unit>
Author:
generated by graphql-java-generator
See Also:
  • Enum Constant Details

    • YEAR

      public static final Unit YEAR
    • MONTH

      public static final Unit MONTH
    • DAY

      public static final Unit DAY
    • HOUR

      public static final Unit HOUR
    • MINUTE

      public static final Unit MINUTE
    • SECOND

      public static final Unit SECOND
  • Method Details

    • values

      public static Unit[] 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 Unit 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
    • graphQlValue

      public String graphQlValue()
      Returns the value of this constant, as specified in the GraphQL schema. This is usually the same as the enum item's name. But it will differ if this name is a java reserved keyword (in which case the name is prefixed by an underscore)
      Returns:
      the enum constant with the specified name, as defined in the GraphQL schema
    • fromGraphQlValue

      public static Unit fromGraphQlValue(String graphQlValue)
      Returns the enum constant of this type with the specified name (as specified in the GraphQL schema). The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      graphQlValue - The value, as defined in the GraphQL schema. This is usually the same as the enum item's name. But it will differ if this name is a java reserved keyword (in which case the name is prefixed by an underscore)
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified GraphQL name