Record Class CreateCustomer
java.lang.Object
java.lang.Record
ch.martinelli.mite4java.api.CreateCustomer
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCreateCustomer(String name) CreateCustomer(String name, String note, String activeHourlyRate, Integer hourlyRate, List<HourlyRatePerService> hourlyRatesPerService, Boolean archived) Creates an instance of aCreateCustomerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactiveHourlyRaterecord component.archived()Returns the value of thearchivedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thehourlyRaterecord component.Returns the value of thehourlyRatesPerServicerecord component.name()Returns the value of thenamerecord component.note()Returns the value of thenoterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CreateCustomer
-
CreateCustomer
public CreateCustomer(String name, String note, String activeHourlyRate, Integer hourlyRate, List<HourlyRatePerService> hourlyRatesPerService, Boolean archived) Creates an instance of aCreateCustomerrecord class.- Parameters:
name- the value for thenamerecord componentnote- the value for thenoterecord componentactiveHourlyRate- the value for theactiveHourlyRaterecord componenthourlyRate- the value for thehourlyRaterecord componenthourlyRatesPerService- the value for thehourlyRatesPerServicerecord componentarchived- the value for thearchivedrecord 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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
note
Returns the value of thenoterecord component.- Returns:
- the value of the
noterecord component
-
activeHourlyRate
Returns the value of theactiveHourlyRaterecord component.- Returns:
- the value of the
activeHourlyRaterecord component
-
hourlyRate
Returns the value of thehourlyRaterecord component.- Returns:
- the value of the
hourlyRaterecord component
-
hourlyRatesPerService
Returns the value of thehourlyRatesPerServicerecord component.- Returns:
- the value of the
hourlyRatesPerServicerecord component
-
archived
Returns the value of thearchivedrecord component.- Returns:
- the value of the
archivedrecord component
-