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

Class PlainTime

base/src/main/java/net/time4j/PlainTime.java:145–3631  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143 * @author Meno Hochschild
144 */
145@CalendarType("iso8601")
146public final class PlainTime
147 extends TimePoint<IsoTimeUnit, PlainTime>
148 implements WallTime, Temporal<PlainTime>, ThreetenAdapter, LocalizedPatternSupport {
149
150 //~ Statische Felder/Initialisierungen --------------------------------
151
152 /**
153 * System-Property f&uuml;r die Darstellung des Dezimaltrennzeichens.
154 */
155 private static final char ISO_DECIMAL_SEPARATOR = (
156 Boolean.getBoolean("net.time4j.format.iso.decimal.dot")
157 ? '.'
158 : ',' // Empfehlung des ISO-Standards
159 );
160
161 private static final int MRD = 1000000000;
162 private static final int MIO = 1000000;
163 private static final int KILO = 1000;
164
165 private static final BigDecimal DECIMAL_60 = new BigDecimal(60);
166 private static final BigDecimal DECIMAL_3600 = new BigDecimal(3600);
167 private static final BigDecimal DECIMAL_MRD = new BigDecimal(MRD);
168
169 private static final BigDecimal DECIMAL_24_0 =
170 new BigDecimal("24");
171 private static final BigDecimal DECIMAL_23_9 =
172 new BigDecimal("23.999999999999999");
173 private static final BigDecimal DECIMAL_59_9 =
174 new BigDecimal("59.999999999999999");
175
176 private static final PlainTime[] HOURS = new PlainTime[25];
177 private static final long serialVersionUID = 2780881537313863339L;
178
179 static {
180 for (int i = 0; i <= 24; i++) {
181 HOURS[i] = new PlainTime(i, 0, 0, 0, false);
182 }
183 }
184
185 /** Minimalwert. */
186 static final PlainTime MIN = HOURS[0];
187
188 /** Maximalwert. */
189 static final PlainTime MAX = HOURS[24];
190
191 /** Uhrzeitkomponente. */
192 static final ChronoElement<PlainTime> WALL_TIME = TimeElement.INSTANCE;
193
194 /**
195 * <p>Element with the wall time in the value range
196 * {@code [T00:00:00,000000000]} until {@code [T24:00:00,000000000]}
197 * (inclusive in the context of {@code PlainTime} else exclusive). </p>
198 *
199 * <p>Example of usage: </p>
200 *
201 * <pre>
202 * PlainTimestamp tsp =

Callers

nothing calls this directly

Calls 9

createClockElementMethod · 0.95
createTimeElementMethod · 0.95
createMethod · 0.95
fillMethod · 0.95
registerExtensionsMethod · 0.95
registerUnitsMethod · 0.95
appendElementMethod · 0.45
setUpMethod · 0.45
buildMethod · 0.45

Tested by

no test coverage detected