Package net.serenitybdd.screenplay
Interface Question<ANSWER>
- All Known Implementing Classes:
CountQuestion,MaxQuestion,MinQuestion,QuestionWithDefinedSubject,Remembered,ReverseQuestion,SortedQuestion,SumQuestion,TheMemory
public interface Question<ANSWER>
-
Method Summary
Modifier and TypeMethodDescriptionstatic QuestionBuilderansweredBy(Actor actor) asADate()default Question<BigDecimal> default <T> Question<Collection<T>> asCollectionOf(Class<T> type) asDouble()default <T> Question<T> asFloat()asLong()asString()describedAs(String description) Returns a new question with the specified text as a subject.default Stringdefault <T> Question<T> Convert the answer to a question into another form using an arbitrary function.default <T> Question<Collection<T>> Convert all the matching answers to a question into another form using an arbitrary function.
-
Method Details
-
answeredBy
-
getSubject
-
about
-
asBoolean
-
not
-
asString
-
asInteger
-
asDouble
-
asFloat
-
asLong
-
asBigDecimal
-
asADate
-
asADate
-
asEnum
-
map
Convert the answer to a question into another form using an arbitrary function.- Type Parameters:
T-- Parameters:
transformer-- Returns:
-
mapEach
Convert all the matching answers to a question into another form using an arbitrary function. -
describedAs
Returns a new question with the specified text as a subject.- Parameters:
description-- Returns:
-
as
-
asListOf
-
asCollectionOf
-