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 aAbiContractrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theabiVersionrecord component.Returns the value of theabiVersionMajorrecord component.data()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.events()Returns the value of theeventsrecord component.fields()Returns the value of thefieldsrecord component.Returns the value of thefunctionsrecord component.final inthashCode()Returns a hash code value for this object.String[]header()Returns the value of theheaderrecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord 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 aAbiContractrecord class.- Parameters:
abiVersionMajor- the value for theabiVersionMajorrecord componentabiVersion- the value for theabiVersionrecord componentversion- the value for theversionrecord componentheader- the value for theheaderrecord componentfunctions- the value for thefunctionsrecord componentevents- the value for theeventsrecord componentdata- the value for thedatarecord componentfields- the value for thefieldsrecord 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 theabiVersionMajorrecord component.- Returns:
- the value of the
abiVersionMajorrecord component
-
abiVersion
Returns the value of theabiVersionrecord component.- Returns:
- the value of the
abiVersionrecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
header
Returns the value of theheaderrecord component.- Returns:
- the value of the
headerrecord component
-
functions
Returns the value of thefunctionsrecord component.- Returns:
- the value of the
functionsrecord component
-
events
Returns the value of theeventsrecord component.- Returns:
- the value of the
eventsrecord component
-
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-
fields
Returns the value of thefieldsrecord component.- Returns:
- the value of the
fieldsrecord component
-