Class Formatter

java.lang.Object
jmt.jmarkov.utils.Formatter

public class Formatter extends Object
Formats the numbers shown in the JMCH graphical interface.
  • Field Details

  • Constructor Details

    • Formatter

      public Formatter()
  • Method Details

    • formatNumber

      public static String formatNumber(Object value, int decimal)
    • formatNumber

      public static String formatNumber(double number, int decimal)
    • formatNumber

      public static String formatNumber(double number, int decimal, boolean grouping)
    • formatNumber

      public static String formatNumber(double number)
    • formatSize

      public static String formatSize(Object value)
      Returns value (byte) formatted as a file size. For example value=2048 returns "2 kb".
    • formatSize

      public static String formatSize(double size)
    • formatLength

      public static String formatLength(long i)
    • formatTime

      public static String formatTime(long time)
    • formatTable

      public static String formatTable(String[] rows, int[] colAlignment)
    • fill

      public static String fill(String s, int count)
    • getCLFDate

      public static String getCLFDate()
      Returns the current date in the format needed for CLF Example: 15/Dec/2002:23:46:16
    • shortDate

      public static String shortDate()