Enum Class BlockchainApi
- All Implemented Interfaces:
Serializable
,Comparable<BlockchainApi>
,Constable
Enumerates the various blockchain protocols supported by elements.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionnetworks()
Gets allBlockchainNetwork
s associated with this API.void
validate
(Collection<BlockchainNetwork> networks) Validates that one or more network matches the<ExceptionT extends Throwable>
voidvalidate
(Collection<BlockchainNetwork> networks, Supplier<ExceptionT> exSupplier) Validates that one or more network matches thestatic BlockchainApi
Returns the enum constant of this class with the specified name.static BlockchainApi[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NEO
The Neo API. -
ETHEREUM
The Ethereum API. -
SOLANA
The Solana protocol. -
FLOW
The Flow API. -
NEAR
The Flow API.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
validate
Validates that one or more network matches the- Parameters:
networks
- theCollection<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
- theCollection<BlockchainNetwork>
exSupplier
- thisSupplier<ExceptionT extends Throwable>
- Throws:
ExceptionT
-
networks
Gets allBlockchainNetwork
s associated with this API.- Returns:
- a
Stream<BlockchainNetwork>
-