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
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thecompletedTasksrecord component.private final floatThe field for thepassedSecondsrecord component.private final floatThe field for thetasksPerSecondrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionTimeInfo(int completedTasks, float passedSeconds, float tasksPerSecond) Creates an instance of aTimeInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecompletedTasksrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatReturns the value of thepassedSecondsrecord component.floatReturns the value of thetasksPerSecondrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
completedTasks
private final int completedTasksThe field for thecompletedTasksrecord component. -
passedSeconds
private final float passedSecondsThe field for thepassedSecondsrecord component. -
tasksPerSecond
private final float tasksPerSecondThe field for thetasksPerSecondrecord component.
-
-
Constructor Details
-
TimeInfo
public TimeInfo(int completedTasks, float passedSeconds, float tasksPerSecond) Creates an instance of aTimeInforecord class.- Parameters:
completedTasks- the value for thecompletedTasksrecord componentpassedSeconds- the value for thepassedSecondsrecord componenttasksPerSecond- the value for thetasksPerSecondrecord 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 thecompletedTasksrecord component.- Returns:
- the value of the
completedTasksrecord component
-
passedSeconds
public float passedSeconds()Returns the value of thepassedSecondsrecord component.- Returns:
- the value of the
passedSecondsrecord component
-
tasksPerSecond
public float tasksPerSecond()Returns the value of thetasksPerSecondrecord component.- Returns:
- the value of the
tasksPerSecondrecord component
-