Package net.finmath.pontes.erc7573
Record Class PontesOracleRequest.Generation
java.lang.Object
java.lang.Record
net.finmath.pontes.erc7573.PontesOracleRequest.Generation
- All Implemented Interfaces:
PontesOracleRequest
- Enclosing interface:
PontesOracleRequest
public static record PontesOracleRequest.Generation(String oracleProxy, BigInteger requestId, BigInteger consumerId, String sender, String callback, String receiverContract, byte[] originalTransaction, List<byte[]> keyIds)
extends Record
implements PontesOracleRequest
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.finmath.pontes.erc7573.PontesOracleRequest
PontesOracleRequest.Decryption, PontesOracleRequest.EncryptedKey, PontesOracleRequest.Generation, PontesOracleRequest.Verification -
Constructor Summary
ConstructorsConstructorDescriptionGeneration(String oracleProxy, BigInteger requestId, BigInteger consumerId, String sender, String callback, String receiverContract, byte[] originalTransaction, List<byte[]> keyIds) Creates an instance of aGenerationrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncallback()Returns the value of thecallbackrecord component.Returns the value of theconsumerIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.List<byte[]> keyIds()Returns the value of thekeyIdsrecord component.Returns the value of theoracleProxyrecord component.byte[]Returns the value of theoriginalTransactionrecord component.Returns the value of thereceiverContractrecord component.Returns the value of therequestIdrecord component.sender()Returns the value of thesenderrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Generation
public Generation(String oracleProxy, BigInteger requestId, BigInteger consumerId, String sender, String callback, String receiverContract, byte[] originalTransaction, List<byte[]> keyIds) Creates an instance of aGenerationrecord class.- Parameters:
oracleProxy- the value for theoracleProxyrecord componentrequestId- the value for therequestIdrecord componentconsumerId- the value for theconsumerIdrecord componentsender- the value for thesenderrecord componentcallback- the value for thecallbackrecord componentreceiverContract- the value for thereceiverContractrecord componentoriginalTransaction- the value for theoriginalTransactionrecord componentkeyIds- the value for thekeyIdsrecord component
-
-
Method Details
-
originalTransaction
public byte[] originalTransaction()Returns the value of theoriginalTransactionrecord component.- Returns:
- the value of the
originalTransactionrecord component
-
keyIds
Returns the value of thekeyIdsrecord component.- Returns:
- the value of the
keyIdsrecord component
-
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). -
oracleProxy
Returns the value of theoracleProxyrecord component.- Specified by:
oracleProxyin interfacePontesOracleRequest- Returns:
- the value of the
oracleProxyrecord component
-
requestId
Returns the value of therequestIdrecord component.- Specified by:
requestIdin interfacePontesOracleRequest- Returns:
- the value of the
requestIdrecord component
-
consumerId
Returns the value of theconsumerIdrecord component.- Specified by:
consumerIdin interfacePontesOracleRequest- Returns:
- the value of the
consumerIdrecord component
-
sender
Returns the value of thesenderrecord component.- Returns:
- the value of the
senderrecord component
-
callback
Returns the value of thecallbackrecord component.- Specified by:
callbackin interfacePontesOracleRequest- Returns:
- the value of the
callbackrecord component
-
receiverContract
Returns the value of thereceiverContractrecord component.- Returns:
- the value of the
receiverContractrecord component
-