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

Class ElementOperator

base/src/main/java/net/time4j/ElementOperator.java:45–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43 * @author Meno Hochschild
44 */
45public abstract class ElementOperator<T>
46 implements ChronoOperator<T> {
47
48 //~ Statische Felder/Initialisierungen --------------------------------
49
50 static final int OP_NEW_VALUE = -1;
51 static final int OP_MINIMIZE = 0;
52 static final int OP_MAXIMIZE = 1;
53 static final int OP_DECREMENT = 2;
54 static final int OP_INCREMENT = 3;
55 static final int OP_FLOOR = 4;
56 static final int OP_CEILING = 5;
57
58 static final int OP_LENIENT = 6;
59 static final int OP_WIM = 7;
60 static final int OP_YOW = 8;
61
62 static final int OP_NAV_NEXT = 9;
63 static final int OP_NAV_PREVIOUS = 10;
64 static final int OP_NAV_NEXT_OR_SAME = 11;
65 static final int OP_NAV_PREVIOUS_OR_SAME = 12;
66
67 static final int OP_ROUND_FULL_HOUR = 13;
68 static final int OP_ROUND_FULL_MINUTE = 14;
69 static final int OP_NEXT_FULL_HOUR = 15;
70 static final int OP_NEXT_FULL_MINUTE = 16;
71
72 static final int OP_FIRST_DAY_OF_NEXT_MONTH = 17;
73 static final int OP_FIRST_DAY_OF_NEXT_QUARTER = 18;
74 static final int OP_FIRST_DAY_OF_NEXT_YEAR = 19;
75 static final int OP_LAST_DAY_OF_PREVIOUS_MONTH = 20;
76 static final int OP_LAST_DAY_OF_PREVIOUS_QUARTER = 21;
77 static final int OP_LAST_DAY_OF_PREVIOUS_YEAR = 22;
78
79 //~ Instanzvariablen --------------------------------------------------
80
81 private final ChronoElement<?> element;
82 private final int type;
83
84 //~ Konstruktoren -----------------------------------------------------
85
86 /**
87 * <p>Paket-privater Konstruktor. </p>
88 *
89 * @param element element this operator will be applied on
90 * @param type operator type
91 */
92 ElementOperator(
93 ChronoElement<?> element,
94 int type
95 ) {
96 super();
97
98 this.element = element;
99 this.type = type;
100
101 }
102

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected