We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7776f84 commit 82bc044Copy full SHA for 82bc044
1 file changed
src/net/sharksystem/asap/ASAP.java
@@ -1,19 +1,20 @@
1
package net.sharksystem.asap;
2
3
public class ASAP {
4
- public static int nextEra(int workingEra) {
5
- if(workingEra == Integer.MAX_VALUE) {
6
- return 0;
7
- }
+ public static final int INITIAL_ERA = 0;
+ public static final int MAX_ERA = Integer.MAX_VALUE;
8
+ static int nextEra(int workingEra) {
+ if(workingEra == ASAP.MAX_ERA) {
9
+ return ASAP.INITIAL_ERA;
10
+ }
11
return workingEra+1;
12
}
13
- public static int previousEra(int workingEra) {
- if(workingEra == 0) {
14
- return Integer.MAX_VALUE;
+ static int previousEra(int workingEra) {
15
+ if(workingEra == ASAP.INITIAL_ERA) {
16
+ return ASAP.MAX_ERA;
17
-
18
return workingEra-1;
19
20
0 commit comments