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

    Fields
    Modifier and Type
    Field
    Description
    private final int
    The field for the completedTasks record component.
    private final float
    The field for the passedSeconds record component.
    private final float
    The field for the tasksPerSecond record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    TimeInfo(int completedTasks, float passedSeconds, float tasksPerSecond)
    Creates an instance of a TimeInfo record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the completedTasks record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    float
    Returns the value of the passedSeconds record component.
    float
    Returns the value of the tasksPerSecond record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • completedTasks

      private final int completedTasks
      The field for the completedTasks record component.
    • passedSeconds

      private final float passedSeconds
      The field for the passedSeconds record component.
    • tasksPerSecond

      private final float tasksPerSecond
      The field for the tasksPerSecond record component.
  • Constructor Details

    • TimeInfo

      public TimeInfo(int completedTasks, float passedSeconds, float tasksPerSecond)
      Creates an instance of a TimeInfo record class.
      Parameters:
      completedTasks - the value for the completedTasks record component
      passedSeconds - the value for the passedSeconds record component
      tasksPerSecond - the value for the tasksPerSecond record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • completedTasks

      public int completedTasks()
      Returns the value of the completedTasks record component.
      Returns:
      the value of the completedTasks record component
    • passedSeconds

      public float passedSeconds()
      Returns the value of the passedSeconds record component.
      Returns:
      the value of the passedSeconds record component
    • tasksPerSecond

      public float tasksPerSecond()
      Returns the value of the tasksPerSecond record component.
      Returns:
      the value of the tasksPerSecond record component