T
- the type of question handled by this recorder@Role public interface QuestionRecorder<T> extends Serializable
Modifier and Type | Method and Description |
---|---|
void |
record(T question)
Record the answer to the given question.
|
boolean |
replay(T question)
Respond to the given question using a recorded answer, if available.
|
void record(T question)
question
- the question that has been asked and its answerboolean replay(T question)
question
- the question that must be answeredtrue
if there is a recorded answer for the given question (which is used to answer the question),
false
if there is not recorded answer for the given questionCopyright © 2004–2021 XWiki. All rights reserved.