public class Challenge
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
Challenge()
Default constructor.
|
Challenge(java.lang.String question,
java.util.Locale loc)
Constructs with a question and locale.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Locale |
getLocale()
Returns the locale of the challenge.
|
java.lang.String |
getQuestion()
Returns the question to ask as the challenge.
|
void |
setLocale(java.util.Locale loc)
Changes the locale of the challenge
|
void |
setQuestion(java.lang.String question)
Changes the question to ask as the challenge.
|
public Challenge()
public Challenge(java.lang.String question,
java.util.Locale loc)
question - Question to ask as the challenge.loc - Locale of the challenge. Can be null.public java.lang.String getQuestion()
public void setQuestion(java.lang.String question)
question - Challenge question.public java.util.Locale getLocale()
public void setLocale(java.util.Locale loc)
loc - Locale of the challenge, null if none.