Enum Class BtcAutoFormat.Style

java.lang.Object
java.lang.Enum<BtcAutoFormat.Style>
org.bitcoinj.utils.BtcAutoFormat.Style
All Implemented Interfaces:
Serializable, Comparable<BtcAutoFormat.Style>, Constable
Enclosing class:
BtcAutoFormat

public static enum BtcAutoFormat.Style extends Enum<BtcAutoFormat.Style>
Enum for specifying the style of currency indicators that are used when formatting, either codes or symbols.
  • Enum Constant Details

    • CODE

      public static final BtcAutoFormat.Style CODE
      Constant for the formatting style that uses a currency code, e.g., "BTC".
    • SYMBOL

      public static final BtcAutoFormat.Style SYMBOL
      Constant for the formatting style that uses a currency symbol, e.g., "฿".
  • Method Details

    • values

      public static BtcAutoFormat.Style[] 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 BtcAutoFormat.Style 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