- All Implemented Interfaces:
Serializable,Comparable<BlockNodeApi>,Constable
An enumeration of well-known block node endpoint APIs.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAny other API type associated with a block node.The Block Node Publish API.The Block Node State Proof API.The Block Node Status API.The Block Node Subscribe Stream API. -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final RegisteredServiceEndpoint.BlockNodeEndpoint.BlockNodeApi -
Method Summary
Modifier and TypeMethodDescriptiontoString()(package private) static BlockNodeApiReturns the enum constant of this class with the specified name.static BlockNodeApiReturns the enum constant of this class with the specified name.static BlockNodeApi[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OTHER
Any other API type associated with a block node. -
STATUS
The Block Node Status API. -
PUBLISH
The Block Node Publish API. -
SUBSCRIBE_STREAM
The Block Node Subscribe Stream API. -
STATE_PROOF
The Block Node State Proof API.
-
-
Field Details
-
code
-
-
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
-
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:
code- 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
-
toString
- Overrides:
toStringin classEnum<BlockNodeApi>
-