Package moblima.utils

Class Helper

java.lang.Object
moblima.utils.Helper

public class Helper extends Object
The type Helper.
  • Constructor Details

    • Helper

      public Helper()
  • Method Details

    • formatPrice

      public static String formatPrice(double price)
      Format price string.
      Parameters:
      price - the price
      Returns:
      the string
    • logger

      public static void logger(String methodName, String msg)
      Logger.
      Parameters:
      methodName - the method name
      msg - the msg
    • colorizer

      public static String colorizer(String text, Helper.Preset preset)
      Colorizer string.
      Parameters:
      text - the text
      preset - the preset
      Returns:
      the string
    • colorPrint

      public static void colorPrint(String text, Helper.Preset preset)
      Color print.
      Parameters:
      text - the text
      preset - the preset
    • parseStrToInt

      public static int parseStrToInt(String inputStr)
      Parse str to int.
      Parameters:
      inputStr - the input str
      Returns:
      the int
    • formatAsTable

      public static String formatAsTable(List<List<String>> rows)
      Format as table string.
      Parameters:
      rows - the rows
      Returns:
      the string
    • figPrint

      public static void figPrint(String lineText)
      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