java.lang.Object
com.hedera.hashgraph.sdk.HookId
The ID of a hook.
This class represents the HookId protobuf message, which contains the hook's creating entity ID and an arbitrary 64-bit identifier.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
HookId
Create a new HookId.- Parameters:
entityId- the hook's creating entity IDhookId- the arbitrary 64-bit identifier
-
-
Method Details
-
getEntityId
Get the hook's creating entity ID.- Returns:
- the entity ID
-
getHookId
public long getHookId()Get the hook ID.- Returns:
- the hook ID
-
toProtobuf
HookId toProtobuf()Convert this HookId to a protobuf message.- Returns:
- the protobuf HookId
-
fromProtobuf
Create a HookId from a protobuf message.- Parameters:
proto- the protobuf HookId- Returns:
- a new HookId instance
-
equals
-
hashCode
public int hashCode() -
toString
-