Record Class TrackerView
java.lang.Object
java.lang.Record
com.arc_e_tect.gradle.trackerlens.dashboard.TrackerView
- Record Components:
id- the tracker's registered idstages- the tracker's canonical stage names, in ordermetrics- oneMetricCardViewper stage, instagesordertotalCount- number of currently-active (non-removed) items in this trackerprojection- the completion projection, when at least 7 days of history is availablechartDates- the dates plotted on this tracker's chart, ascendingchartSeries- cumulative reached-count per stage, aligned index-for-index withchartDatesstaleItems- active items that have not reached the final stage and have seen no recent activitystageBreakdown- number of active items whoseLifecycleRecord.latestStage(List)is each stage, keyed and ordered exactly likestages- unlikemetrics' cumulative "reached at least this stage" counts, these are mutually exclusive and always sum tototalCount, since every active item has exactly one furthest-reached stagebreakdownByDate-stageBreakdown, recomputed as of each date inchartDates(same index order) instead of "now" - each entry sums to however many items were active as of that date, which may differ fromtotalCount
public record TrackerView(String id, List<String> stages, List<MetricCardView> metrics, int totalCount, Optional<Projection> projection, List<LocalDate> chartDates, Map<String,List<Integer>> chartSeries, List<LifecycleRecord> staleItems, Map<String,Integer> stageBreakdown, List<Map<String,Integer>> breakdownByDate)
extends Record
Rendered data for one
.tracker section of the dashboard.-
Constructor Summary
ConstructorsConstructorDescriptionTrackerView(String id, List<String> stages, List<MetricCardView> metrics, int totalCount, Optional<Projection> projection, List<LocalDate> chartDates, Map<String, List<Integer>> chartSeries, List<LifecycleRecord> staleItems, Map<String, Integer> stageBreakdown, List<Map<String, Integer>> breakdownByDate) Creates an instance of aTrackerViewrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebreakdownByDaterecord component.Returns the value of thechartDatesrecord component.Returns the value of thechartSeriesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.metrics()Returns the value of themetricsrecord component.Returns the value of theprojectionrecord component.Returns the value of thestageBreakdownrecord component.stages()Returns the value of thestagesrecord component.Returns the value of thestaleItemsrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalCountrecord component.
-
Constructor Details
-
TrackerView
public TrackerView(String id, List<String> stages, List<MetricCardView> metrics, int totalCount, Optional<Projection> projection, List<LocalDate> chartDates, Map<String, List<Integer>> chartSeries, List<LifecycleRecord> staleItems, Map<String, Integer> stageBreakdown, List<Map<String, Integer>> breakdownByDate) Creates an instance of aTrackerViewrecord class.- Parameters:
id- the value for theidrecord componentstages- the value for thestagesrecord componentmetrics- the value for themetricsrecord componenttotalCount- the value for thetotalCountrecord componentprojection- the value for theprojectionrecord componentchartDates- the value for thechartDatesrecord componentchartSeries- the value for thechartSeriesrecord componentstaleItems- the value for thestaleItemsrecord componentstageBreakdown- the value for thestageBreakdownrecord componentbreakdownByDate- the value for thebreakdownByDaterecord 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 '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
stages
Returns the value of thestagesrecord component.- Returns:
- the value of the
stagesrecord component
-
metrics
Returns the value of themetricsrecord component.- Returns:
- the value of the
metricsrecord component
-
totalCount
public int totalCount()Returns the value of thetotalCountrecord component.- Returns:
- the value of the
totalCountrecord component
-
projection
Returns the value of theprojectionrecord component.- Returns:
- the value of the
projectionrecord component
-
chartDates
Returns the value of thechartDatesrecord component.- Returns:
- the value of the
chartDatesrecord component
-
chartSeries
Returns the value of thechartSeriesrecord component.- Returns:
- the value of the
chartSeriesrecord component
-
staleItems
Returns the value of thestaleItemsrecord component.- Returns:
- the value of the
staleItemsrecord component
-
stageBreakdown
Returns the value of thestageBreakdownrecord component.- Returns:
- the value of the
stageBreakdownrecord component
-
breakdownByDate
Returns the value of thebreakdownByDaterecord component.- Returns:
- the value of the
breakdownByDaterecord component
-