Fix access types
authorSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Thu, 20 Mar 2025 21:27:10 +0000 (23:27 +0200)
committerSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Thu, 20 Mar 2025 21:27:10 +0000 (23:27 +0200)
src/main/java/eu/svjatoslav/commons/cli_helper/CLIHelper.java

index b2ee395..16e5aa2 100755 (executable)
@@ -71,7 +71,7 @@ public class CLIHelper {
      * @param max          the maximum acceptable value (inclusive)
      * @return a float value entered by the user, or {@code defaultValue} if empty input
      */
-    private float askFloat(String prompt, float defaultValue, float min, float max) {
+    public float askFloat(String prompt, float defaultValue, float min, float max) {
         while (true) {
             String input = askString(prompt, valueOf(defaultValue));
             try {
@@ -97,7 +97,7 @@ public class CLIHelper {
      * @param max          the maximum acceptable value (inclusive)
      * @return a long value entered by the user, or {@code defaultValue} if empty input
      */
-    private long askLong(String prompt, long defaultValue, long min, long max) {
+    public long askLong(String prompt, long defaultValue, long min, long max) {
         while (true) {
             String input = askString(prompt, valueOf(defaultValue));
             try {