22 package com.realtime.crossfire.jxclient.character;
24 import java.util.Collections;
25 import java.util.LinkedHashMap;
27 import org.jetbrains.annotations.NotNull;
51 private final Map<String, String>
choices;
59 public Choice(@NotNull
final String choiceName, @NotNull
final String choiceDescription, @NotNull
final Map<String, String> choices) {
62 this.choices =
new LinkedHashMap<>(
choices);
89 return Collections.unmodifiableMap(choices);
98 return "name="+choiceName+
", description="+choiceDescription+
", choices="+
choices;
final String choiceName
Identifies the choice.
Choice(@NotNull final String choiceName, @NotNull final String choiceDescription, @NotNull final Map< String, String > choices)
Creates a new instance.
final String choiceDescription
The human readable choice name.
Map< String, String > getChoices()
Returns the choices.
A choice for character creation.
String getChoiceDescription()
Returns the human readable choice name.
String getChoiceName()
Returns the choice identification.
final Map< String, String > choices
The choices.