@ParametersAreNonnullByDefault public abstract class AbstractQuery<I,D> extends Query<I,D>
Modifier and Type | Field and Description |
---|---|
protected Word<I> |
prefix |
protected Word<I> |
suffix |
Constructor and Description |
---|
AbstractQuery(Query<I,?> query) |
AbstractQuery(Word<I> queryWord) |
AbstractQuery(Word<I> prefix,
Word<I> suffix) |
Modifier and Type | Method and Description |
---|---|
Word<I> |
getPrefix() |
Word<I> |
getSuffix() |
String |
toStringWithAnswer(D answer)
Returns the string representation of this query, including a possible answer.
|
public String toStringWithAnswer(D answer)
AbstractQuery
for their
toString method to ensure output consistency."Query[<prefix>|<suffix> / <answer>]"
. If the query
has not been answered yet, <answer>
will be null.Copyright © 2015. All rights reserved.