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

Method validateYear

base/src/main/java/net/time4j/PlainDate.java:2537–2551  ·  view source on GitHub ↗
(
            ChronoEntity<?> entity,
            int year
        )

Source from the content-addressed store, hash-verified

2535 }
2536
2537 private static boolean validateYear(
2538 ChronoEntity<?> entity,
2539 int year
2540 ) {
2541
2542 if ((year < GregorianMath.MIN_YEAR) || (year > GregorianMath.MAX_YEAR)) {
2543 flagValidationError(
2544 entity,
2545 "YEAR out of range: " + year);
2546 return false;
2547 }
2548
2549 return true;
2550
2551 }
2552
2553 private static boolean validateMonth(
2554 ChronoEntity<?> entity,

Callers 1

createFromMethod · 0.95

Calls 1

flagValidationErrorMethod · 0.95

Tested by

no test coverage detected