Record Class GUI.DialogResult<ResultType>

java.lang.Object
java.lang.Record
page.codeberg.friedolyn.gui.GUI.DialogResult<ResultType>
Type Parameters:
ResultType - The type of the result that the user has entered.
Record Components:
success - Whether the user has successfully entered valid information and closed the window.
result - The actual value(s) that the user has entered. If the user has not entered any information or closed the window without entering anything, this will be an empty Optional.
Enclosing class:
GUI

public static record GUI.DialogResult<ResultType>(@NonNull FuzzyBoolean success, @NonNull Optional<ResultType> result) extends Record
A record that represents the user's input in a dialog window.