Package moblima.utils
Class Helper
java.lang.Object
moblima.utils.Helper
The type Helper.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
colorizer
(String text, Helper.Preset preset) Colorizer string.static void
colorPrint
(String text, Helper.Preset preset) Color print.static void
Fig print.static String
formatAsTable
(List<List<String>> rows) Format as table string.static String
formatPrice
(double price) Format price string.static int
generateDigits
(int digitCount) Generate digits int.static void
Logger.static int
parseStrToInt
(String inputStr) Parse str to int.
-
Constructor Details
-
Helper
public Helper()
-
-
Method Details
-
formatPrice
Format price string.- Parameters:
price
- the price- Returns:
- the string
-
logger
Logger.- Parameters:
methodName
- the method namemsg
- the msg
-
colorizer
Colorizer string.- Parameters:
text
- the textpreset
- the preset- Returns:
- the string
-
colorPrint
Color print.- Parameters:
text
- the textpreset
- the preset
-
parseStrToInt
Parse str to int.- Parameters:
inputStr
- the input str- Returns:
- the int
-
formatAsTable
Format as table string.- Parameters:
rows
- the rows- Returns:
- the string
-
figPrint
Fig print.- Parameters:
lineText
- the line text
-
generateDigits
public static int generateDigits(int digitCount) Generate digits int.- Parameters:
digitCount
- the digit count- Returns:
- the int
-