Enum Class Answer.RefusalAnswer
- All Implemented Interfaces:
Answer, Serializable, Comparable<Answer.RefusalAnswer>, Constable
- Enclosing interface:
Answer
The answer to a question that the provider declined to answer. Refusals are reported per
question, so one
Classifier.classify(ClassifierRequest) call can still answer the other questions.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Nested classes/interfaces inherited from interface Answer
Answer.BinaryAnswer, Answer.ChoiceAnswer, Answer.RefusalAnswer, Answer.ScoreAnswerModifier and TypeInterfaceDescriptionstatic classThe answer to aQuestion.Binaryquestion.static classThe answer to aQuestion.Choicequestion.static enumThe answer to a question that the provider declined to answer.static classThe answer to aQuestion.Scorequestion. -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic Answer.RefusalAnswerReturns the enum constant of this class with the specified name.static Answer.RefusalAnswer[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-