Record Class DisplayAccountingsResource.DisplayAccountingBean
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.finance.impl.action.DisplayAccountingsResource.DisplayAccountingBean
- Enclosing class:
DisplayAccountingsResource
public static record DisplayAccountingsResource.DisplayAccountingBean(Integer debitAccount, Integer creditAccount, BigDecimal amount, String currency)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDisplayAccountingBean(AccountingService.Accounting accounting) DisplayAccountingBean(Integer debitAccount, Integer creditAccount, BigDecimal amount, String currency) Creates an instance of aDisplayAccountingBeanrecord class. -
Method Summary
Modifier and TypeMethodDescriptionamount()Returns the value of theamountrecord component.Returns the value of thecreditAccountrecord component.currency()Returns the value of thecurrencyrecord component.Returns the value of thedebitAccountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DisplayAccountingBean
-
DisplayAccountingBean
public DisplayAccountingBean(Integer debitAccount, Integer creditAccount, BigDecimal amount, String currency) Creates an instance of aDisplayAccountingBeanrecord class.- Parameters:
debitAccount- the value for thedebitAccountrecord componentcreditAccount- the value for thecreditAccountrecord componentamount- the value for theamountrecord componentcurrency- the value for thecurrencyrecord 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). -
debitAccount
Returns the value of thedebitAccountrecord component.- Returns:
- the value of the
debitAccountrecord component
-
creditAccount
Returns the value of thecreditAccountrecord component.- Returns:
- the value of the
creditAccountrecord 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
-