Package org.eu.zajc.akiwrapper
Enum Akiwrapper.Answer
- All Implemented Interfaces:
Serializable,Comparable<Akiwrapper.Answer>
- Enclosing interface:
Akiwrapper
An enum used to represent an answer to Akinator's question.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSkips this question (neutral answer)Answers with "no" (negative)Answers with "probably" (almost positive)Answers with "probably not" (almost negative)Answers with "yes" (positive) -
Method Summary
Modifier and TypeMethodDescriptionintgetId()static Akiwrapper.AnswerReturns the enum constant of this type with the specified name.static Akiwrapper.Answer[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
YES
Answers with "yes" (positive) -
NO
Answers with "no" (negative) -
DONT_KNOW
Skips this question (neutral answer) -
PROBABLY
Answers with "probably" (almost positive) -
PROBABLY_NOT
Answers with "probably not" (almost negative)
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getId
public int getId()- Returns:
- this answer's ID which is passed to the API
-