Record Class TimeEntry.Tracking
java.lang.Object
java.lang.Record
ch.martinelli.mite4java.domain.TimeEntry.Tracking
- Enclosing class:
TimeEntry
-
Constructor Summary
ConstructorsConstructorDescriptionTracking(OffsetDateTime since, int minutes) Creates an instance of aTrackingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intminutes()Returns the value of theminutesrecord component.since()Returns the value of thesincerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Tracking
Creates an instance of aTrackingrecord class.- Parameters:
since- the value for thesincerecord componentminutes- the value for theminutesrecord 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. -
since
Returns the value of thesincerecord component.- Returns:
- the value of the
sincerecord component
-
minutes
public int minutes()Returns the value of theminutesrecord component.- Returns:
- the value of the
minutesrecord component
-