Class Formatter

java.lang.Object
com.realtime.crossfire.jxclient.util.Formatter

public class Formatter extends Object
Utility class for formatting values into strings.
  • Method Details

    • formatLong

      @NotNull public static @NotNull String formatLong(long value)
      Returns a long value formatted as a human-readable string.
      Parameters:
      value - the value
      Returns:
      return the formatted value
    • formatFloat

      @NotNull public static @NotNull String formatFloat(double value, int digits)
      Formats a float value for display.
      Parameters:
      value - the float value
      digits - the number of fraction digits; must be between 1..3 inclusive
      Returns:
      the formatted value