Class Choice


  • public class Choice
    extends java.lang.Object
    A choice for character creation.
    • Constructor Summary

      Constructors 
      Constructor Description
      Choice​(@NotNull java.lang.String choiceName, @NotNull java.lang.String choiceDescription, @NotNull java.util.Map<java.lang.String,​java.lang.String> choices)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @NotNull java.lang.String getChoiceDescription()
      Returns the human readable choice name.
      @NotNull java.lang.String getChoiceName()
      Returns the choice identification.
      @NotNull java.util.Map<java.lang.String,​java.lang.String> getChoices()
      Returns the choices.
      @NotNull java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Choice

        public Choice​(@NotNull
                      @NotNull java.lang.String choiceName,
                      @NotNull
                      @NotNull java.lang.String choiceDescription,
                      @NotNull
                      @NotNull java.util.Map<java.lang.String,​java.lang.String> choices)
        Creates a new instance.
        Parameters:
        choiceName - identifies the choice
        choiceDescription - the human readable choice name
        choices - the choices
    • Method Detail

      • getChoiceName

        @NotNull
        public @NotNull java.lang.String getChoiceName()
        Returns the choice identification.
        Returns:
        the choice identification
      • getChoiceDescription

        @NotNull
        public @NotNull java.lang.String getChoiceDescription()
        Returns the human readable choice name.
        Returns:
        the human readable choice name
      • getChoices

        @NotNull
        public @NotNull java.util.Map<java.lang.String,​java.lang.String> getChoices()
        Returns the choices.
        Returns:
        the choices
      • toString

        @NotNull
        public @NotNull java.lang.String toString()
        Overrides:
        toString in class java.lang.Object