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

Class AnnualDate

base/src/main/java/net/time4j/AnnualDate.java:125–1068  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123 * @since 3.22/4.18
124 */
125@CalendarType("iso8601")
126public final class AnnualDate
127 extends ChronoEntity<AnnualDate>
128 implements Comparable<AnnualDate>, Temporal<AnnualDate>, ThreetenAdapter, LocalizedPatternSupport, Serializable {
129
130 //~ Statische Felder/Initialisierungen --------------------------------
131
132 /**
133 * <p>Element with the calendar month as enum in the value range {@code JANUARY-DECEMBER}). </p>
134 */
135 /*[deutsch]
136 * <p>Element mit dem Monat als Enum (Wertebereich {@code JANUARY-DECEMBER}). </p>
137 */
138 @FormattableElement(format = "M", alt = "L")
139 public static final ChronoElement<Month> MONTH_OF_YEAR = PlainDate.MONTH_OF_YEAR;
140
141 /**
142 * <p>Element with the calendar month in numerical form and the value range
143 * {@code 1-12}. </p>
144 *
145 * <p>Normally the enum-variant is recommended due to clarity and
146 * type-safety. The enum-form can also be formatted as text. </p>
147 *
148 * @see #MONTH_OF_YEAR
149 */
150 /*[deutsch]
151 * <p>Element mit dem Monat in Nummernform (Wertebereich {@code 1-12}). </p>
152 *
153 * <p>Im allgemeinen empfiehlt sich wegen der Typsicherheit und sprachlichen
154 * Klarheit die enum-Form, die zudem auch als Text formatierbar ist. </p>
155 *
156 * @see #MONTH_OF_YEAR
157 */
158 public static final ChronoElement<Integer> MONTH_AS_NUMBER = PlainDate.MONTH_AS_NUMBER;
159
160 /**
161 * <p>Element with the day of month in the value range {@code 1-28/29/30/31}. </p>
162 */
163 /*[deutsch]
164 * <p>Element mit dem Tag des Monats (Wertebereich {@code 1-28/29/30/31}). </p>
165 */
166 @FormattableElement(format = "d")
167 public static final ChronoElement<Integer> DAY_OF_MONTH = PlainDate.DAY_OF_MONTH;
168
169 private static final Chronology<AnnualDate> ENGINE =
170 Chronology.Builder
171 .setUp(AnnualDate.class, new Merger())
172 .appendElement(DAY_OF_MONTH, new IntegerElementRule(true))
173 .appendElement(MONTH_OF_YEAR, new MonthElementRule())
174 .appendElement(MONTH_AS_NUMBER, new IntegerElementRule(false))
175 .build();
176
177 private static final Chronology<MonthDay> THREETEN;
178
179 static {
180 Converter<MonthDay, AnnualDate> converter =
181 new Converter<MonthDay, AnnualDate>() {
182 @Override

Callers

nothing calls this directly

Calls 3

buildMethod · 0.45
appendElementMethod · 0.45
setUpMethod · 0.45

Tested by

no test coverage detected