Enum Class DoubleFormats

java.lang.Object
java.lang.Enum<DoubleFormats>
com.amalgamasimulation.studies.result.DoubleFormats
All Implemented Interfaces:
Serializable, Comparable<DoubleFormats>, Constable

public enum DoubleFormats extends Enum<DoubleFormats>
  • Enum Constant Details

    • KMB

      public static final DoubleFormats KMB
    • KMB_SHORT

      public static final DoubleFormats KMB_SHORT
    • KMB_DOLLARS

      public static final DoubleFormats KMB_DOLLARS
    • NO_DECIMALS

      public static final DoubleFormats NO_DECIMALS
    • NO_DECIMALS_SIGN

      public static final DoubleFormats NO_DECIMALS_SIGN
    • TWO_DECIMALS

      public static final DoubleFormats TWO_DECIMALS
    • TWO_DECIMALS_SIGN

      public static final DoubleFormats TWO_DECIMALS_SIGN
    • PERCENT

      public static final DoubleFormats PERCENT
    • PERCENT_SIGN

      public static final DoubleFormats PERCENT_SIGN
    • PERCENT_TWO_DECIMALS

      public static final DoubleFormats PERCENT_TWO_DECIMALS
    • PERCENT_TWO_DECIMALS_SIGN

      public static final DoubleFormats PERCENT_TWO_DECIMALS_SIGN
    • DOLLAR

      public static final DoubleFormats DOLLAR
    • DOLLAR_SIGN

      public static final DoubleFormats DOLLAR_SIGN
    • DOLLAR_TWO_DECIMALS

      public static final DoubleFormats DOLLAR_TWO_DECIMALS
    • DOLLAR_TWO_DECIMALS_SIGN

      public static final DoubleFormats DOLLAR_TWO_DECIMALS_SIGN
    • PRECISE_NUMBER_FORMAT

      public static final DoubleFormats PRECISE_NUMBER_FORMAT
  • Method Details

    • values

      public static DoubleFormats[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DoubleFormats valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • format

      public String format(double value)
    • formatter

      public Function<Double,String> formatter()