Class DefaultListResult

    • Constructor Detail

      • DefaultListResult

        public DefaultListResult​(java.lang.String selectedId,
                                 ListPrompt prompt)
        Create a new DefaultListResult with the given selected ID and prompt.
        Parameters:
        selectedId - the ID of the selected item
        prompt - the associated ListPrompt, or null if none
    • Method Detail

      • getSelectedId

        public java.lang.String getSelectedId()
        Description copied from interface: ListResult
        Get the ID of the selected item.
        Specified by:
        getSelectedId in interface ListResult
        Returns:
        the ID of the selected item
      • toString

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