java.lang.Object
java.lang.Record
tech.deplant.java4ever.binding.Abi.AbiContract
- Enclosing class:
Abi
public static record Abi.AbiContract(Number abiVersion, Number abiVersionOld, String version, String[] header, Abi.AbiFunction[] functions, Abi.AbiEvent[] events, Abi.AbiData[] data, Abi.AbiParam[] fields)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAbiContract
(Number abiVersion, Number abiVersionOld, 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 theabiVersionOld
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(Number abiVersion, Number abiVersionOld, String version, String[] header, Abi.AbiFunction[] functions, Abi.AbiEvent[] events, Abi.AbiData[] data, Abi.AbiParam[] fields) Creates an instance of aAbiContract
record class.- Parameters:
abiVersion
- the value for theabiVersion
record componentabiVersionOld
- the value for theabiVersionOld
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
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)
. -
abiVersion
Returns the value of theabiVersion
record component.- Returns:
- the value of the
abiVersion
record component
-
abiVersionOld
Returns the value of theabiVersionOld
record component.- Returns:
- the value of the
abiVersionOld
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
-