Allgemeines verstellbares chronologisches Element auf Integer-Basis. @author Meno Hochschild
| 36 | * @author Meno Hochschild |
| 37 | */ |
| 38 | final class IntegerDateElement |
| 39 | extends AbstractDateElement<Integer> |
| 40 | implements ProportionalElement<Integer, PlainDate> { |
| 41 | |
| 42 | //~ Statische Felder/Initialisierungen -------------------------------- |
| 43 | |
| 44 | /** Element-Index */ |
| 45 | static final int YEAR = 14; |
| 46 | /** Element-Index */ |
| 47 | static final int MONTH = 15; |
| 48 | /** Element-Index */ |
| 49 | static final int DAY_OF_MONTH = 16; |
| 50 | /** Element-Index */ |
| 51 | static final int DAY_OF_YEAR = 17; |
| 52 | /** Element-Index */ |
| 53 | static final int DAY_OF_QUARTER = 18; |
| 54 | |
| 55 | private static final long serialVersionUID = -1337148214680014674L; |
| 56 | |
| 57 | //~ Instanzvariablen -------------------------------------------------- |
| 58 | |
| 59 | private transient final int ruleIndex; |
| 60 | private transient final Integer defaultMin; |
| 61 | private transient final Integer defaultMax; |
| 62 | private transient final char symbol; |
| 63 | private transient final ChronoFunction<ChronoEntity<?>, BigDecimal> rf; |
| 64 | |
| 65 | //~ Konstruktoren ----------------------------------------------------- |
| 66 | |
| 67 | private IntegerDateElement( |
| 68 | String name, |
| 69 | int ruleIndex, |
| 70 | Integer defaultMin, |
| 71 | Integer defaultMax, |
| 72 | char symbol |
| 73 | ) { |
| 74 | super(name); |
| 75 | |
| 76 | this.ruleIndex = ruleIndex; |
| 77 | this.defaultMin = defaultMin; |
| 78 | this.defaultMax = defaultMax; |
| 79 | this.symbol = symbol; |
| 80 | this.rf = new ProportionalFunction(this, false); |
| 81 | |
| 82 | } |
| 83 | |
| 84 | //~ Methoden ---------------------------------------------------------- |
| 85 | |
| 86 | @Override |
| 87 | public Class<Integer> getType() { |
| 88 | |
| 89 | return Integer.class; |
| 90 | |
| 91 | } |
| 92 | |
| 93 | @Override |
| 94 | public char getSymbol() { |
| 95 |
nothing calls this directly
no outgoing calls
no test coverage detected