java.lang.Object
java.lang.Enum<CoinType>
com.barbantfintech.tools.common.cryptojdk.enums.CoinType
All Implemented Interfaces:
Serializable, Comparable<CoinType>, Constable

public enum CoinType extends Enum<CoinType>
Enum representing the type of coin.

A coin can either be a native cryptocurrency on its own blockchain or a token built on top of another blockchain.

See Also:
  • Enum Constant Details

    • NATIVE

      public static final CoinType NATIVE
      Native cryptocurrency, such as Bitcoin or Ethereum.
    • ERC20

      public static final CoinType ERC20
      ERC20 token built on top of another blockchain.
  • Method Details

    • values

      public static CoinType[] 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 CoinType 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