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

Method test

base/src/main/java/net/time4j/Weekday.java:477–486  ·  view source on GitHub ↗
(GregorianDate context)

Source from the content-addressed store, hash-verified

475 }
476
477 @Override
478 public boolean test(GregorianDate context) {
479
480 int y = context.getYear();
481 int m = context.getMonth();
482 int dom = context.getDayOfMonth();
483
484 return (GregorianMath.getDayOfWeek(y, m, dom) == this.getValue());
485
486 }
487
488 /**
489 * <p>Conversion to the {@code java.time}-equivalent. </p>

Callers

nothing calls this directly

Calls 5

getDayOfWeekMethod · 0.95
getValueMethod · 0.95
getYearMethod · 0.65
getMonthMethod · 0.65
getDayOfMonthMethod · 0.65

Tested by

no test coverage detected