Record Class CreateTimeEntry
java.lang.Object
java.lang.Record
ch.martinelli.mite4java.api.CreateTimeEntry
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final record -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CreateTimeEntry.Builderbuilder()dateAt()Returns the value of thedateAtrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.locked()Returns the value of thelockedrecord component.minutes()Returns the value of theminutesrecord component.note()Returns the value of thenoterecord component.Returns the value of theprojectIdrecord component.Returns the value of theserviceIdrecord component.Returns the value of thestartedTimerecord component.final StringtoString()Returns a string representation of this record class.userId()Returns the value of theuserIdrecord component.
-
Constructor Details
-
CreateTimeEntry
public CreateTimeEntry(LocalDate dateAt, Integer minutes, String note, Integer userId, Integer projectId, Integer serviceId, Boolean locked, Integer startedTime) Creates an instance of aCreateTimeEntryrecord class.- Parameters:
dateAt- the value for thedateAtrecord componentminutes- the value for theminutesrecord componentnote- the value for thenoterecord componentuserId- the value for theuserIdrecord componentprojectId- the value for theprojectIdrecord componentserviceId- the value for theserviceIdrecord componentlocked- the value for thelockedrecord componentstartedTime- the value for thestartedTimerecord component
-
-
Method Details
-
builder
-
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). -
dateAt
Returns the value of thedateAtrecord component.- Returns:
- the value of the
dateAtrecord component
-
minutes
Returns the value of theminutesrecord component.- Returns:
- the value of the
minutesrecord component
-
note
Returns the value of thenoterecord component.- Returns:
- the value of the
noterecord component
-
userId
Returns the value of theuserIdrecord component.- Returns:
- the value of the
userIdrecord component
-
projectId
Returns the value of theprojectIdrecord component.- Returns:
- the value of the
projectIdrecord component
-
serviceId
Returns the value of theserviceIdrecord component.- Returns:
- the value of the
serviceIdrecord component
-
locked
Returns the value of thelockedrecord component.- Returns:
- the value of the
lockedrecord component
-
startedTime
Returns the value of thestartedTimerecord component.- Returns:
- the value of the
startedTimerecord component
-