Package net.finmath.pontes.transaction
Record Class PontesTransaction
java.lang.Object
java.lang.Record
net.finmath.pontes.transaction.PontesTransaction
public record PontesTransaction(String sellerBic, String sellerMarketDltOperator, String buyerBic, String amount, String currency, String type)
extends Record
Canonical cash-leg transaction embedded in the on-chain request bytes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionamount()Returns the value of theamountrecord component.buyerBic()Returns the value of thebuyerBicrecord component.currency()Returns the value of thecurrencyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static PontesTransactionof(String sellerBic, String sellerMarketDltOperator, String buyerBic, BigDecimal amount) Returns the value of thesellerBicrecord component.Returns the value of thesellerMarketDltOperatorrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
PontesTransaction
public PontesTransaction(String sellerBic, String sellerMarketDltOperator, String buyerBic, String amount, String currency, String type) Creates an instance of aPontesTransactionrecord class.- Parameters:
sellerBic- the value for thesellerBicrecord componentsellerMarketDltOperator- the value for thesellerMarketDltOperatorrecord componentbuyerBic- the value for thebuyerBicrecord componentamount- the value for theamountrecord componentcurrency- the value for thecurrencyrecord componenttype- the value for thetyperecord component
-
-
Method Details
-
of
public static PontesTransaction of(String sellerBic, String sellerMarketDltOperator, String buyerBic, BigDecimal amount) -
exactAmount
-
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). -
sellerBic
Returns the value of thesellerBicrecord component.- Returns:
- the value of the
sellerBicrecord component
-
sellerMarketDltOperator
Returns the value of thesellerMarketDltOperatorrecord component.- Returns:
- the value of the
sellerMarketDltOperatorrecord component
-
buyerBic
Returns the value of thebuyerBicrecord component.- Returns:
- the value of the
buyerBicrecord component
-
amount
Returns the value of theamountrecord component.- Returns:
- the value of the
amountrecord component
-
currency
Returns the value of thecurrencyrecord component.- Returns:
- the value of the
currencyrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-