Record Class TimeEntry
java.lang.Object
java.lang.Record
ch.martinelli.mite4java.domain.TimeEntry
public record TimeEntry(int id, int minutes, LocalDate dateAt, String note, boolean billable, boolean locked, Double revenue, Integer hourlyRate, Integer userId, String userName, Integer projectId, String projectName, Integer customerId, String customerName, Integer serviceId, String serviceName, Integer startedTime, TimeEntry.Tracking tracking, OffsetDateTime createdAt, OffsetDateTime updatedAt)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionTimeEntry(int id, int minutes, LocalDate dateAt, String note, boolean billable, boolean locked, Double revenue, Integer hourlyRate, Integer userId, String userName, Integer projectId, String projectName, Integer customerId, String customerName, Integer serviceId, String serviceName, Integer startedTime, TimeEntry.Tracking tracking, OffsetDateTime createdAt, OffsetDateTime updatedAt) Creates an instance of aTimeEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbillable()Returns the value of thebillablerecord component.Returns the value of thecreatedAtrecord component.Returns the value of thecustomerIdrecord component.Returns the value of thecustomerNamerecord component.dateAt()Returns the value of thedateAtrecord component.endTime()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.intid()Returns the value of theidrecord component.booleanlocked()Returns the value of thelockedrecord component.intminutes()Returns the value of theminutesrecord component.note()Returns the value of thenoterecord component.Returns the value of theprojectIdrecord component.Returns the value of theprojectNamerecord component.revenue()Returns the value of therevenuerecord component.Returns the value of theserviceIdrecord component.Returns the value of theserviceNamerecord component.Returns the value of thestartedTimerecord component.final StringtoString()Returns a string representation of this record class.tracking()Returns the value of thetrackingrecord component.Returns the value of theupdatedAtrecord component.userId()Returns the value of theuserIdrecord component.userName()Returns the value of theuserNamerecord component.
-
Constructor Details
-
TimeEntry
public TimeEntry(int id, int minutes, LocalDate dateAt, String note, boolean billable, boolean locked, Double revenue, Integer hourlyRate, Integer userId, String userName, Integer projectId, String projectName, Integer customerId, String customerName, Integer serviceId, String serviceName, Integer startedTime, TimeEntry.Tracking tracking, OffsetDateTime createdAt, OffsetDateTime updatedAt) Creates an instance of aTimeEntryrecord class.- Parameters:
id- the value for theidrecord componentminutes- the value for theminutesrecord componentdateAt- the value for thedateAtrecord componentnote- the value for thenoterecord componentbillable- the value for thebillablerecord componentlocked- the value for thelockedrecord componentrevenue- the value for therevenuerecord componenthourlyRate- the value for thehourlyRaterecord componentuserId- the value for theuserIdrecord componentuserName- the value for theuserNamerecord componentprojectId- the value for theprojectIdrecord componentprojectName- the value for theprojectNamerecord componentcustomerId- the value for thecustomerIdrecord componentcustomerName- the value for thecustomerNamerecord componentserviceId- the value for theserviceIdrecord componentserviceName- the value for theserviceNamerecord componentstartedTime- the value for thestartedTimerecord componenttracking- the value for thetrackingrecord componentcreatedAt- the value for thecreatedAtrecord componentupdatedAt- the value for theupdatedAtrecord component
-
-
Method Details
-
startTime
-
endTime
-
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
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
minutes
public int minutes()Returns the value of theminutesrecord component.- Returns:
- the value of the
minutesrecord component
-
dateAt
Returns the value of thedateAtrecord component.- Returns:
- the value of the
dateAtrecord component
-
note
Returns the value of thenoterecord component.- Returns:
- the value of the
noterecord component
-
billable
public boolean billable()Returns the value of thebillablerecord component.- Returns:
- the value of the
billablerecord component
-
locked
public boolean locked()Returns the value of thelockedrecord component.- Returns:
- the value of the
lockedrecord component
-
revenue
Returns the value of therevenuerecord component.- Returns:
- the value of the
revenuerecord component
-
hourlyRate
Returns the value of thehourlyRaterecord component.- Returns:
- the value of the
hourlyRaterecord component
-
userId
Returns the value of theuserIdrecord component.- Returns:
- the value of the
userIdrecord component
-
userName
Returns the value of theuserNamerecord component.- Returns:
- the value of the
userNamerecord component
-
projectId
Returns the value of theprojectIdrecord component.- Returns:
- the value of the
projectIdrecord component
-
projectName
Returns the value of theprojectNamerecord component.- Returns:
- the value of the
projectNamerecord component
-
customerId
Returns the value of thecustomerIdrecord component.- Returns:
- the value of the
customerIdrecord component
-
customerName
Returns the value of thecustomerNamerecord component.- Returns:
- the value of the
customerNamerecord component
-
serviceId
Returns the value of theserviceIdrecord component.- Returns:
- the value of the
serviceIdrecord component
-
serviceName
Returns the value of theserviceNamerecord component.- Returns:
- the value of the
serviceNamerecord component
-
startedTime
Returns the value of thestartedTimerecord component.- Returns:
- the value of the
startedTimerecord component
-
tracking
Returns the value of thetrackingrecord component.- Returns:
- the value of the
trackingrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-
updatedAt
Returns the value of theupdatedAtrecord component.- Returns:
- the value of the
updatedAtrecord component
-