Enum Class BlockchainApi

java.lang.Object
java.lang.Enum<BlockchainApi>
dev.getelements.elements.sdk.model.blockchain.BlockchainApi
All Implemented Interfaces:
Serializable, Comparable<BlockchainApi>, Constable

public enum BlockchainApi extends Enum<BlockchainApi>
Enumerates the various blockchain protocols supported by elements.
  • Enum Constant Details

  • Method Details

    • values

      public static BlockchainApi[] 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 BlockchainApi 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
    • validate

      public void validate(Collection<BlockchainNetwork> networks)
      Validates that one or more network matches the
      Parameters:
      networks - the Collection<BlockchainNetwork>
    • validate

      public <ExceptionT extends Throwable> void validate(Collection<BlockchainNetwork> networks, Supplier<ExceptionT> exSupplier) throws ExceptionT
      Validates that one or more network matches the
      Type Parameters:
      ExceptionT - the exception to throw if the validation fails
      Parameters:
      networks - the Collection<BlockchainNetwork>
      exSupplier - this Supplier<ExceptionT extends Throwable>
      Throws:
      ExceptionT
    • networks

      public Stream<BlockchainNetwork> networks()
      Gets all BlockchainNetworks associated with this API.
      Returns:
      a Stream<BlockchainNetwork>