standup.clouds
Enum CloudLabelJokeDisplay
java.lang.Object
java.lang.Enum<CloudLabelJokeDisplay>
standup.clouds.CloudLabelJokeDisplay
- All Implemented Interfaces:
- Serializable, Comparable<CloudLabelJokeDisplay>
public enum CloudLabelJokeDisplay
- extends Enum<CloudLabelJokeDisplay>
An enumeration of 3 modes of displaying a joke in a BubbleLabel
:
QUESTION
: Only display the question
ANSWER
: Only display the answer
QUESTION_AND_ANSWER
: Display both the question and the answer
- Author:
- Ruli Manurung
QUESTION
public static final CloudLabelJokeDisplay QUESTION
ANSWER
public static final CloudLabelJokeDisplay ANSWER
QUESTION_AND_ANSWER
public static final CloudLabelJokeDisplay QUESTION_AND_ANSWER
values
public static final CloudLabelJokeDisplay[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(CloudLabelJokeDisplay c : CloudLabelJokeDisplay.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static CloudLabelJokeDisplay valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name