Class DOWMetric
- java.lang.Object
-
- bytemusketeers.heslingtonhustle.metrics.DOWMetric
-
- All Implemented Interfaces:
MetricEntry
class DOWMetric extends java.lang.Object implements MetricEntry
ADOWMetric
represents a singular day of the week to be managed by theMetricController
- Author:
- ENG1 Team 23 (Cohort 3)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
DOWMetric.DayOfWeek
Distinguish between days of the week with the defaultEnum.toString()
methods for display
-
Field Summary
Fields Modifier and Type Field Description private DOWMetric.DayOfWeek
value
TheDOWMetric.DayOfWeek
embedded in theDOWMetric
-
Constructor Summary
Constructors Constructor Description DOWMetric()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getValue()
(package private) boolean
isFinalDay()
Are we on the final day of the week?(package private) void
nextDay()
Increments thevalue
in the expected fashion, assuming the order specified inDOWMetric.DayOfWeek
.
-
-
-
Field Detail
-
value
private DOWMetric.DayOfWeek value
TheDOWMetric.DayOfWeek
embedded in theDOWMetric
-
-
Method Detail
-
getValue
public java.lang.String getValue()
- Specified by:
getValue
in interfaceMetricEntry
- Returns:
- A
String
representation of the embeddedDOWMetric.DayOfWeek
-
nextDay
void nextDay()
Increments thevalue
in the expected fashion, assuming the order specified inDOWMetric.DayOfWeek
. If the final day is reached, the first day is silently selected.
-
isFinalDay
boolean isFinalDay()
Are we on the final day of the week?- Returns:
- Are we on the final day of the week?
-
-