Record Class Projection

java.lang.Object
java.lang.Record
com.arc_e_tect.gradle.trackerlens.projection.Projection
Record Components:
projectedDate - estimated date the tracker reaches totalCount
currentCount - number of items that have reached the tracker's final stage so far
totalCount - total number of items the tracker is tracking
velocityPerDay - items reaching the final stage per day, averaged over the lookback window
confidence - how much history this estimate is based on

public record Projection(Instant projectedDate, int currentCount, int totalCount, double velocityPerDay, Confidence confidence) extends Record
An extrapolated completion estimate for a tracker, computed by ProgressProjector.
  • Constructor Details

    • Projection

      public Projection(Instant projectedDate, int currentCount, int totalCount, double velocityPerDay, Confidence confidence)
      Creates an instance of a Projection record class.
      Parameters:
      projectedDate - the value for the projectedDate record component
      currentCount - the value for the currentCount record component
      totalCount - the value for the totalCount record component
      velocityPerDay - the value for the velocityPerDay record component
      confidence - the value for the confidence 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. Reference components are compared with Objects::equals(Object,Object); primitive components 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.
    • projectedDate

      public Instant projectedDate()
      Returns the value of the projectedDate record component.
      Returns:
      the value of the projectedDate record component
    • currentCount

      public int currentCount()
      Returns the value of the currentCount record component.
      Returns:
      the value of the currentCount record component
    • totalCount

      public int totalCount()
      Returns the value of the totalCount record component.
      Returns:
      the value of the totalCount record component
    • velocityPerDay

      public double velocityPerDay()
      Returns the value of the velocityPerDay record component.
      Returns:
      the value of the velocityPerDay record component
    • confidence

      public Confidence confidence()
      Returns the value of the confidence record component.
      Returns:
      the value of the confidence record component