Enum Class BlockNodeApi

java.lang.Object
java.lang.Enum<BlockNodeApi>
com.hedera.hashgraph.sdk.BlockNodeApi
All Implemented Interfaces:
Serializable, Comparable<BlockNodeApi>, Constable

public enum BlockNodeApi extends Enum<BlockNodeApi>
An enumeration of well-known block node endpoint APIs.
  • Enum Constant Details

    • OTHER

      public static final BlockNodeApi OTHER
      Any other API type associated with a block node.
    • STATUS

      public static final BlockNodeApi STATUS
      The Block Node Status API.
    • PUBLISH

      public static final BlockNodeApi PUBLISH
      The Block Node Publish API.
    • SUBSCRIBE_STREAM

      public static final BlockNodeApi SUBSCRIBE_STREAM
      The Block Node Subscribe Stream API.
    • STATE_PROOF

      public static final BlockNodeApi STATE_PROOF
      The Block Node State Proof API.
  • Field Details

  • Method Details

    • values

      public static BlockNodeApi[] 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 BlockNodeApi 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
    • 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 name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Overrides:
      toString in class Enum<BlockNodeApi>