MCPcopy Create free account
hub / github.com/MenoData/Time4J / getMinimum

Method getMinimum

base/src/main/java/net/time4j/Weekmodel.java:1228–1240  ·  view source on GitHub ↗
(T context)

Source from the content-addressed store, hash-verified

1226 }
1227
1228 @Override
1229 public Weekday getMinimum(T context) {
1230
1231 PlainDate date = context.get(CALENDAR_DATE);
1232 int oldNum = date.getDayOfWeek().getValue(this.element.getModel());
1233
1234 if (date.getDaysSinceEpochUTC() + 1 - oldNum < PlainDate.axis().getCalendarSystem().getMinimumSinceUTC()) {
1235 return PlainDate.MIN.getDayOfWeek();
1236 }
1237
1238 return this.element.getDefaultMinimum();
1239
1240 }
1241
1242 @Override
1243 public Weekday getMaximum(T context) {

Callers

nothing calls this directly

Calls 10

getDayOfWeekMethod · 0.95
axisMethod · 0.95
getMethod · 0.65
getValueMethod · 0.65
getDaysSinceEpochUTCMethod · 0.65
getMinimumSinceUTCMethod · 0.65
getDefaultMinimumMethod · 0.65
getModelMethod · 0.45
getCalendarSystemMethod · 0.45
getDayOfWeekMethod · 0.45

Tested by

no test coverage detected