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

Class LongElement

base/src/main/java/net/time4j/LongElement.java:39–189  ·  view source on GitHub ↗

Repräsentiert ein Uhrzeitelement vom long-Typ. @author Meno Hochschild

Source from the content-addressed store, hash-verified

37 * @author Meno Hochschild
38 */
39final class LongElement
40 extends AbstractTimeElement<Long>
41 implements ProportionalElement<Long, PlainTime> {
42
43 //~ Statische Felder/Initialisierungen --------------------------------
44
45 /**
46 * Zeiger auf den Tages&uuml;berlauf.
47 */
48 static final ChronoElement<Long> DAY_OVERFLOW = new LongElement();
49
50 private static final long serialVersionUID = 5930990958663061693L;
51
52 //~ Instanzvariablen --------------------------------------------------
53
54 private transient final Long defaultMin;
55 private transient final Long defaultMax;
56 private transient final ChronoFunction<ChronoEntity<?>, BigDecimal> rf;
57
58 //~ Konstruktoren -----------------------------------------------------
59
60 private LongElement() {
61 this("DAY_OVERFLOW", Long.MIN_VALUE, Long.MAX_VALUE);
62 }
63
64 private LongElement(
65 String name,
66 long defaultMin,
67 long defaultMax
68 ) {
69 super(name);
70
71 this.defaultMin = Long.valueOf(defaultMin);
72 this.defaultMax = Long.valueOf(defaultMax);
73
74 this.rf = new ProportionalFunction(this, true);
75
76 }
77
78 //~ Methoden ----------------------------------------------------------
79
80 @Override
81 public Class<Long> getType() {
82
83 return Long.class;
84
85 }
86
87 @Override
88 public Long getDefaultMinimum() {
89
90 return this.defaultMin;
91
92 }
93
94 @Override
95 public Long getDefaultMaximum() {
96

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected