Record Class TaskCompletionMonitor.TimeInfo
java.lang.Object
java.lang.Record
org.variantsync.diffdetective.analysis.monitoring.TaskCompletionMonitor.TimeInfo
- Enclosing class:
TaskCompletionMonitor
public static record TaskCompletionMonitor.TimeInfo(int completedTasks, float passedSeconds, float tasksPerSecond)
extends Record
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
The field for thecompletedTasks
record component.private final float
The field for thepassedSeconds
record component.private final float
The field for thetasksPerSecond
record component. -
Constructor Summary
ConstructorDescriptionTimeInfo
(int completedTasks, float passedSeconds, float tasksPerSecond) Creates an instance of aTimeInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the value of thecompletedTasks
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.float
Returns the value of thepassedSeconds
record component.float
Returns the value of thetasksPerSecond
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
completedTasks
private final int completedTasksThe field for thecompletedTasks
record component. -
passedSeconds
private final float passedSecondsThe field for thepassedSeconds
record component. -
tasksPerSecond
private final float tasksPerSecondThe field for thetasksPerSecond
record component.
-
-
Constructor Details
-
TimeInfo
public TimeInfo(int completedTasks, float passedSeconds, float tasksPerSecond) Creates an instance of aTimeInfo
record class.- Parameters:
completedTasks
- the value for thecompletedTasks
record componentpassedSeconds
- the value for thepassedSeconds
record componenttasksPerSecond
- the value for thetasksPerSecond
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 with '=='. -
completedTasks
public int completedTasks()Returns the value of thecompletedTasks
record component.- Returns:
- the value of the
completedTasks
record component
-
passedSeconds
public float passedSeconds()Returns the value of thepassedSeconds
record component.- Returns:
- the value of the
passedSeconds
record component
-
tasksPerSecond
public float tasksPerSecond()Returns the value of thetasksPerSecond
record component.- Returns:
- the value of the
tasksPerSecond
record component
-