Record Class Projection
java.lang.Object
java.lang.Record
com.arc_e_tect.gradle.trackerlens.projection.Projection
- Record Components:
projectedDate- estimated date the tracker reachestotalCountcurrentCount- number of items that have reached the tracker's final stage so fartotalCount- total number of items the tracker is trackingvelocityPerDay- items reaching the final stage per day, averaged over the lookback windowconfidence- 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 Summary
ConstructorsConstructorDescriptionProjection(Instant projectedDate, int currentCount, int totalCount, double velocityPerDay, Confidence confidence) Creates an instance of aProjectionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconfidencerecord component.intReturns the value of thecurrentCountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theprojectedDaterecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalCountrecord component.doubleReturns the value of thevelocityPerDayrecord component.
-
Constructor Details
-
Projection
public Projection(Instant projectedDate, int currentCount, int totalCount, double velocityPerDay, Confidence confidence) Creates an instance of aProjectionrecord class.- Parameters:
projectedDate- the value for theprojectedDaterecord componentcurrentCount- the value for thecurrentCountrecord componenttotalCount- the value for thetotalCountrecord componentvelocityPerDay- the value for thevelocityPerDayrecord componentconfidence- the value for theconfidencerecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
projectedDate
Returns the value of theprojectedDaterecord component.- Returns:
- the value of the
projectedDaterecord component
-
currentCount
public int currentCount()Returns the value of thecurrentCountrecord component.- Returns:
- the value of the
currentCountrecord component
-
totalCount
public int totalCount()Returns the value of thetotalCountrecord component.- Returns:
- the value of the
totalCountrecord component
-
velocityPerDay
public double velocityPerDay()Returns the value of thevelocityPerDayrecord component.- Returns:
- the value of the
velocityPerDayrecord component
-
confidence
Returns the value of theconfidencerecord component.- Returns:
- the value of the
confidencerecord component
-