Module java4ever.framework
Record Class Template.CustomTemplate
java.lang.Object
java.lang.Record
tech.deplant.java4ever.framework.template.Template.CustomTemplate
- All Implemented Interfaces:
Template
- Enclosing interface:
Template
public static record Template.CustomTemplate(ContractAbi abi, Tvc tvc)
extends Record
implements Template
-
Nested Class Summary
Nested classes/interfaces inherited from interface tech.deplant.java4ever.framework.template.Template
Template.CustomTemplate
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionCustomTemplate
(ContractAbi abi, Tvc tvc) Creates an instance of aCustomTemplate
record class. -
Method Summary
Modifier and TypeMethodDescriptionabi()
Returns the value of theabi
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.final String
toString()
Returns a string representation of this record class.tvc()
Returns the value of thetvc
record component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface tech.deplant.java4ever.framework.template.Template
addressFromEncodedTvc, calculateAddress, decodeInitialData, decodeInitialPubkey, isDeployed
-
Constructor Details
-
CustomTemplate
Creates an instance of aCustomTemplate
record class.- Parameters:
abi
- the value for theabi
record componenttvc
- the value for thetvc
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)
. -
abi
Returns the value of theabi
record component. -
tvc
Returns the value of thetvc
record component.
-