java.lang.Object
java.lang.Record
tech.deplant.java4ever.binding.Abi.AbiContract
- Enclosing class:
Abi
public static record Abi.AbiContract(Long abiVersionMajor, Long abiVersion, String version, String[] header, Abi.AbiFunction[] functions, Abi.AbiEvent[] events, Abi.AbiData[] data, Abi.AbiParam[] fields)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAbiContract
(Long abiVersionMajor, Long abiVersion, String version, String[] header, Abi.AbiFunction[] functions, Abi.AbiEvent[] events, Abi.AbiData[] data, Abi.AbiParam[] fields) Creates an instance of aAbiContract
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theabiVersion
record component.Returns the value of theabiVersionMajor
record component.data()
Returns the value of thedata
record component.final boolean
Indicates whether some other object is "equal to" this one.events()
Returns the value of theevents
record component.fields()
Returns the value of thefields
record component.Returns the value of thefunctions
record component.final int
hashCode()
Returns a hash code value for this object.String[]
header()
Returns the value of theheader
record component.final String
toString()
Returns a string representation of this record class.version()
Returns the value of theversion
record component.
-
Constructor Details
-
AbiContract
public AbiContract(Long abiVersionMajor, Long abiVersion, String version, String[] header, Abi.AbiFunction[] functions, Abi.AbiEvent[] events, Abi.AbiData[] data, Abi.AbiParam[] fields) Creates an instance of aAbiContract
record class.- Parameters:
abiVersionMajor
- the value for theabiVersionMajor
record componentabiVersion
- the value for theabiVersion
record componentversion
- the value for theversion
record componentheader
- the value for theheader
record componentfunctions
- the value for thefunctions
record componentevents
- the value for theevents
record componentdata
- the value for thedata
record componentfields
- the value for thefields
record component
-
-
Method Details
-
toString
-
hashCode
-
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)
. -
abiVersionMajor
Returns the value of theabiVersionMajor
record component.- Returns:
- the value of the
abiVersionMajor
record component
-
abiVersion
Returns the value of theabiVersion
record component.- Returns:
- the value of the
abiVersion
record component
-
version
Returns the value of theversion
record component.- Returns:
- the value of the
version
record component
-
header
Returns the value of theheader
record component.- Returns:
- the value of the
header
record component
-
functions
Returns the value of thefunctions
record component.- Returns:
- the value of the
functions
record component
-
events
Returns the value of theevents
record component.- Returns:
- the value of the
events
record component
-
data
Returns the value of thedata
record component.- Returns:
- the value of the
data
record component
-
fields
Returns the value of thefields
record component.- Returns:
- the value of the
fields
record component
-