- added setter for totalMinutes
- removed dilemma about overriding setEndTime AND setTotalMinutes etc.
This commit is contained in:
@@ -37,8 +37,7 @@ public class DrinkingBar extends AbstractLoadingBar {
|
||||
|
||||
|
||||
@Override
|
||||
protected void setEndTime(LocalTime endTime) {
|
||||
super.setEndTime(endTime);
|
||||
protected void extraInitEndTimeTotalMinutes() {
|
||||
// correct necessary litres to drink based on the end time.
|
||||
// lower the volume in quarter litre steps
|
||||
BigDecimal calcTotalLitres = DEFAULT_TOTAL_LITRES;
|
||||
|
Reference in New Issue
Block a user