Class ActionBuilder.Input

  • Enclosing class:
    ActionBuilder

    public static class ActionBuilder.Input
    extends Object
    The input for the action builder
    • Field Detail

      • menu

        public final Menu menu
      • type

        public final String type
      • value

        public final String value
      • option

        public final String option
    • Constructor Detail

      • Input

        public Input​(Menu menu,
                     String type,
                     String value,
                     String option)
        Create a new input
        Parameters:
        menu - the menu
        type - the type of the action
        value - the value of the action
        option - the option of the action
    • Method Detail

      • getOptionAsList

        public List<String> getOptionAsList​(String separator)
        Get the option as a list
        Parameters:
        separator - the separator
        Returns:
        the list
      • getOptionAsList

        public List<String> getOptionAsList()
        Get the option as a list. The format is value,value
        Returns:
        the list
      • getOptionAsMap

        public Map<String,​String> getOptionAsMap()
        Get the option as a map. The format is key=value,key=value
        Returns:
        the map