Enum Akiwrapper.Answer

java.lang.Object
java.lang.Enum<Akiwrapper.Answer>
org.eu.zajc.akiwrapper.Akiwrapper.Answer
All Implemented Interfaces:
Serializable, Comparable<Akiwrapper.Answer>
Enclosing interface:
Akiwrapper

public static enum Akiwrapper.Answer extends Enum<Akiwrapper.Answer>
An enum used to represent an answer to Akinator's question.
  • Enum Constant Details

    • YES

      public static final Akiwrapper.Answer YES
      Answers with "yes" (positive)
    • NO

      public static final Akiwrapper.Answer NO
      Answers with "no" (negative)
    • DONT_KNOW

      public static final Akiwrapper.Answer DONT_KNOW
      Skips this question (neutral answer)
    • PROBABLY

      public static final Akiwrapper.Answer PROBABLY
      Answers with "probably" (almost positive)
    • PROBABLY_NOT

      public static final Akiwrapper.Answer PROBABLY_NOT
      Answers with "probably not" (almost negative)
  • Method Details

    • values

      public static Akiwrapper.Answer[] 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 Akiwrapper.Answer 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
    • getId

      public int getId()
      Returns:
      this answer's ID which is passed to the API