Class Answer.Response

java.lang.Object
nz.org.riskscape.wizard.Answer.Response
Enclosing class:
Answer

public static final class Answer.Response extends Object

Records a user's response to a question. An Answer may contain multiple Responses, depending on the Question's arity, or it may have zero Responses if it was skipped.

  • Constructor Details

    • Response

      public Response(Object boundValue, Object originalInput)
  • Method Details

    • getBoundValue

      public Object getBoundValue()

      The result of converting user input in to an object that matches the type declared by Question.getParameterType()

    • getOriginalInput

      public Object getOriginalInput()

      The input from the user that was used to create boundValue

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object