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 Stringcolorizer(String text, Helper.Preset preset) Colorizer string.static voidcolorPrint(String text, Helper.Preset preset) Color print.static voidFig print.static StringformatAsTable(List<List<String>> rows) Format as table string.static StringformatPrice(double price) Format price string.static intgenerateDigits(int digitCount) Generate digits int.static voidLogger.static intparseStrToInt(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
-