Class OptionalNameCallback

    • Constructor Detail

      • OptionalNameCallback

        public OptionalNameCallback​(String prompt)
        Construct a new instance.
        Parameters:
        prompt - the prompt to offer the user
      • OptionalNameCallback

        public OptionalNameCallback​(String prompt,
                                    String defaultName)
        Construct a new instance.
        Parameters:
        prompt - the prompt to offer the user
        defaultName - the default name to specify (must not be null)
    • Method Detail

      • needsInformation

        public boolean needsInformation()
        Description copied from interface: ExtendedCallback
        Determine if this callback is requesting information.
        Specified by:
        needsInformation in interface ExtendedCallback
        Returns:
        true if the callback is requesting information, false if it is only providing information