Enum Class NftHookType

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

public enum NftHookType extends Enum<NftHookType>
Hook type for NFT transfers, indicating side (sender/receiver) and timing (pre / pre-post).
  • Enum Constant Details

    • PRE_HOOK_SENDER

      public static final NftHookType PRE_HOOK_SENDER
    • PRE_POST_HOOK_SENDER

      public static final NftHookType PRE_POST_HOOK_SENDER
    • PRE_HOOK_RECEIVER

      public static final NftHookType PRE_HOOK_RECEIVER
    • PRE_POST_HOOK_RECEIVER

      public static final NftHookType PRE_POST_HOOK_RECEIVER
  • Method Details

    • values

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