| 181 | * @author Meno Hochschild |
| 182 | */ |
| 183 | @CalendarType("iso8601") |
| 184 | public final class PlainTimestamp |
| 185 | extends TimePoint<IsoUnit, PlainTimestamp> |
| 186 | implements GregorianDate, WallTime, |
| 187 | Temporal<PlainTimestamp>, ThreetenAdapter, Normalizer<IsoUnit>, LocalizedPatternSupport { |
| 188 | |
| 189 | //~ Statische Felder/Initialisierungen -------------------------------- |
| 190 | |
| 191 | private static final int MRD = 1000000000; |
| 192 | |
| 193 | private static final PlainTimestamp MIN = |
| 194 | new PlainTimestamp(PlainDate.MIN, PlainTime.MIN); |
| 195 | private static final PlainTimestamp MAX = |
| 196 | new PlainTimestamp(PlainDate.MAX, WALL_TIME.getDefaultMaximum()); |
| 197 | |
| 198 | private static final Map<CalendarUnit, UnitRule<PlainTimestamp>> CALENDAR_UNIT_RULE_MAP; |
| 199 | private static final Map<ClockUnit, UnitRule<PlainTimestamp>> CLOCK_UNIT_RULE_MAP; |
| 200 | |
| 201 | private static final Map<Object, ChronoElement<?>> CHILDREN; |
| 202 | private static final TimeAxis<IsoUnit, PlainTimestamp> ENGINE; |
| 203 | private static final TimeMetric<IsoUnit, Duration<IsoUnit>> STD_METRIC; |
| 204 | |
| 205 | static { |
| 206 | Map<CalendarUnit, UnitRule<PlainTimestamp>> m1 = new EnumMap<>(CalendarUnit.class); |
| 207 | Map<ClockUnit, UnitRule<PlainTimestamp>> m2 = new EnumMap<>(ClockUnit.class); |
| 208 | for (CalendarUnit unit : CalendarUnit.values()) { |
| 209 | m1.put(unit, new CompositeUnitRule(unit)); |
| 210 | } |
| 211 | for (ClockUnit unit : ClockUnit.values()) { |
| 212 | m2.put(unit, new CompositeUnitRule(unit)); |
| 213 | } |
| 214 | CALENDAR_UNIT_RULE_MAP = m1; |
| 215 | CLOCK_UNIT_RULE_MAP = m2; |
| 216 | |
| 217 | Map<Object, ChronoElement<?>> children = new HashMap<>(); |
| 218 | children.put(CALENDAR_DATE, WALL_TIME); |
| 219 | children.put(YEAR, MONTH_AS_NUMBER); |
| 220 | children.put(YEAR_OF_WEEKDATE, Weekmodel.ISO.weekOfYear()); |
| 221 | children.put(QUARTER_OF_YEAR, DAY_OF_QUARTER); |
| 222 | children.put(MONTH_OF_YEAR, DAY_OF_MONTH); |
| 223 | children.put(MONTH_AS_NUMBER, DAY_OF_MONTH); |
| 224 | children.put(DAY_OF_MONTH, WALL_TIME); |
| 225 | children.put(DAY_OF_WEEK, WALL_TIME); |
| 226 | children.put(DAY_OF_YEAR, WALL_TIME); |
| 227 | children.put(DAY_OF_QUARTER, WALL_TIME); |
| 228 | children.put(WEEKDAY_IN_MONTH, WALL_TIME); |
| 229 | children.put(AM_PM_OF_DAY, DIGITAL_HOUR_OF_AMPM); |
| 230 | children.put(CLOCK_HOUR_OF_AMPM, MINUTE_OF_HOUR); |
| 231 | children.put(CLOCK_HOUR_OF_DAY, MINUTE_OF_HOUR); |
| 232 | children.put(DIGITAL_HOUR_OF_AMPM, MINUTE_OF_HOUR); |
| 233 | children.put(DIGITAL_HOUR_OF_DAY, MINUTE_OF_HOUR); |
| 234 | children.put(HOUR_FROM_0_TO_24, MINUTE_OF_HOUR); |
| 235 | children.put(MINUTE_OF_HOUR, SECOND_OF_MINUTE); |
| 236 | children.put(MINUTE_OF_DAY, SECOND_OF_MINUTE); |
| 237 | children.put(SECOND_OF_MINUTE, NANO_OF_SECOND); |
| 238 | children.put(SECOND_OF_DAY, NANO_OF_SECOND); |
| 239 | CHILDREN = Collections.unmodifiableMap(children); |
| 240 |
nothing calls this directly
no test coverage detected