- All Implemented Interfaces:
Serializable,Comparable<HookExtensionPoint>,Constable
Enum representing the Hiero extension points that accept a hook.
Extension points define where hooks can be attached to customize behavior in the Hiero network.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUsed to customize an account's allowances during a CryptoTransfer transaction. -
Method Summary
Modifier and TypeMethodDescriptionstatic HookExtensionPointfromProtobuf(HookExtensionPoint protoValue) Create a HookExtensionPoint from a protobuf value.Get the protobuf value for this extension point.static HookExtensionPointReturns the enum constant of this class with the specified name.static HookExtensionPoint[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ACCOUNT_ALLOWANCE_HOOK
Used to customize an account's allowances during a CryptoTransfer transaction.This hook allows accounts to define custom logic for approving or rejecting token transfers, providing fine-grained control over allowance behavior.
-
-
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
-
getProtoValue
Get the protobuf value for this extension point.- Returns:
- the protobuf enum value
-
fromProtobuf
Create a HookExtensionPoint from a protobuf value.- Parameters:
protoValue- the protobuf enum value- Returns:
- the corresponding HookExtensionPoint
- Throws:
IllegalArgumentException- if the protobuf value is not recognized
-