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
ConstructorDescriptionDisplayAccountingBean
(AccountingService.Accounting accounting) DisplayAccountingBean
(Integer debitAccount, Integer creditAccount, BigDecimal amount, String currency) Creates an instance of aDisplayAccountingBean
record class. -
Method Summary
Modifier and TypeMethodDescriptionamount()
Returns the value of theamount
record component.Returns the value of thecreditAccount
record component.currency()
Returns the value of thecurrency
record component.Returns the value of thedebitAccount
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.
-
Constructor Details
-
DisplayAccountingBean
-
DisplayAccountingBean
public DisplayAccountingBean(Integer debitAccount, Integer creditAccount, BigDecimal amount, String currency) Creates an instance of aDisplayAccountingBean
record class.- Parameters:
debitAccount
- the value for thedebitAccount
record componentcreditAccount
- the value for thecreditAccount
record componentamount
- the value for theamount
record componentcurrency
- the value for thecurrency
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)
. -
debitAccount
Returns the value of thedebitAccount
record component.- Returns:
- the value of the
debitAccount
record component
-
creditAccount
Returns the value of thecreditAccount
record component.- Returns:
- the value of the
creditAccount
record component
-
amount
Returns the value of theamount
record component.- Returns:
- the value of the
amount
record component
-
currency
Returns the value of thecurrency
record component.- Returns:
- the value of the
currency
record component
-