Record Class AmmExpenses
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.amm.api.service.AmmExpenses
public record AmmExpenses(String type, int numberOfExpenses, BigDecimal avgAmount, BigDecimal totalAmount)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAmmExpenses(String type, int numberOfExpenses, BigDecimal avgAmount, BigDecimal totalAmount) Creates an instance of aAmmExpensesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theavgAmountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thenumberOfExpensesrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetotalAmountrecord component.type()Returns the value of thetyperecord component.
-
Constructor Details
-
AmmExpenses
Creates an instance of aAmmExpensesrecord class.- Parameters:
type- the value for thetyperecord componentnumberOfExpenses- the value for thenumberOfExpensesrecord componentavgAmount- the value for theavgAmountrecord componenttotalAmount- the value for thetotalAmountrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
numberOfExpenses
public int numberOfExpenses()Returns the value of thenumberOfExpensesrecord component.- Returns:
- the value of the
numberOfExpensesrecord component
-
avgAmount
Returns the value of theavgAmountrecord component.- Returns:
- the value of the
avgAmountrecord component
-
totalAmount
Returns the value of thetotalAmountrecord component.- Returns:
- the value of the
totalAmountrecord component
-