Record Class SupportTriageWorkflow.Charge
java.lang.Object
java.lang.Record
com.example.workflows.SupportTriageWorkflow.Charge
- Enclosing class:
SupportTriageWorkflow
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theamountCentsrecord component.currency()Returns the value of thecurrencyrecord component.date()Returns the value of thedaterecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Charge
Creates an instance of aChargerecord class.- Parameters:
id- the value for theidrecord componentdate- the value for thedaterecord componentdescription- the value for thedescriptionrecord componentamountCents- the value for theamountCentsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
date
Returns the value of thedaterecord component.- Returns:
- the value of the
daterecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
amountCents
public int amountCents()Returns the value of theamountCentsrecord component.- Returns:
- the value of the
amountCentsrecord component
-
currency
Returns the value of thecurrencyrecord component.- Returns:
- the value of the
currencyrecord component
-