Record Class CreateService
java.lang.Object
java.lang.Record
ch.martinelli.mite4java.api.CreateService
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCreateService(String name) Creates an instance of aCreateServicerecord class. -
Method Summary
Modifier and TypeMethodDescriptionarchived()Returns the value of thearchivedrecord component.billable()Returns the value of thebillablerecord 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.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
-
CreateService
-
CreateService
public CreateService(String name, String note, Integer hourlyRate, Boolean billable, Boolean archived) Creates an instance of aCreateServicerecord class.- Parameters:
name- the value for thenamerecord componentnote- the value for thenoterecord componenthourlyRate- the value for thehourlyRaterecord componentbillable- the value for thebillablerecord 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
-
hourlyRate
Returns the value of thehourlyRaterecord component.- Returns:
- the value of the
hourlyRaterecord component
-
billable
Returns the value of thebillablerecord component.- Returns:
- the value of the
billablerecord component
-
archived
Returns the value of thearchivedrecord component.- Returns:
- the value of the
archivedrecord component
-