java.lang.Object
java.lang.Record
tech.deplant.java4ever.binding.Abi.DecodedMessageBody
- Record Components:
bodyType
- Type of the message body content.name
- Function or event name.value
- Parameters or result value.header
- Function header.
- Enclosing class:
Abi
public static record Abi.DecodedMessageBody(Abi.MessageBodyType bodyType, String name, Map<String,Object> value, Abi.FunctionHeader header)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDecodedMessageBody
(Abi.MessageBodyType bodyType, String name, Map<String, Object> value, Abi.FunctionHeader header) Creates an instance of aDecodedMessageBody
record class. -
Method Summary
Modifier and TypeMethodDescriptionbodyType()
Returns the value of thebodyType
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.header()
Returns the value of theheader
record component.name()
Returns the value of thename
record component.final String
toString()
Returns a string representation of this record class.value()
Returns the value of thevalue
record component.
-
Constructor Details
-
DecodedMessageBody
public DecodedMessageBody(Abi.MessageBodyType bodyType, String name, Map<String, Object> value, Abi.FunctionHeader header) Creates an instance of aDecodedMessageBody
record class.
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
bodyType
Returns the value of thebodyType
record component.- Returns:
- the value of the
bodyType
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
value
Returns the value of thevalue
record component.- Returns:
- the value of the
value
record component
-
header
Returns the value of theheader
record component.- Returns:
- the value of the
header
record component
-