* @param max The maximum acceptable value (inclusive), or null if no upper bound
* @return A Float value that the user entered, or the defaultValue, or null if no defaultValue was given
*/
- public Float askFloat(String prompt, Float defaultValue, Float min, Float max) {
+ public static Float askFloat(String prompt, Float defaultValue, Float min, Float max) {
while (true) {
// If we have a defaultValue, display it in brackets; otherwise display no default
String displayPrompt = prompt
* @param max The maximum acceptable value (inclusive), or null if no upper bound
* @return A Long value that the user entered, or the defaultValue, or null if no defaultValue was given
*/
- public Long askLong(String prompt, Long defaultValue, Long min, Long max) {
+ public static Long askLong(String prompt, Long defaultValue, Long min, Long max) {
while (true) {
// If we have a defaultValue, display it in brackets; otherwise display no default
String displayPrompt = prompt
* @param max The maximum acceptable value (inclusive), or null if no upper bound
* @return An integer value that the user entered, or the defaultValue, or null if no defaultValue was given
*/
- public Integer askInteger(String prompt, Integer defaultValue, Integer min, Integer max) {
+ public static Integer askInteger(String prompt, Integer defaultValue, Integer min, Integer max) {
while (true) {
// If we have a defaultValue, display it in brackets; otherwise display no default
String displayPrompt = prompt