public class UserInputHandler
extends java.lang.Object
Constructor and Description |
---|
UserInputHandler() |
Modifier and Type | Method and Description |
---|---|
<T> void |
getInput(javax.swing.JPanel panel,
java.lang.String instructions,
java.util.function.Consumer<java.util.List<T>> callback,
Parser<T> parser)
Get an input array of the given size and the given type, using the parser to parse strings.
|
public <T> void getInput(javax.swing.JPanel panel, java.lang.String instructions, java.util.function.Consumer<java.util.List<T>> callback, Parser<T> parser)
instructions
- The instructions to display to the user.callback
- The callback which consumes the user-given array of values.