Skip to content

Commit a61f1a5

Browse files
committed
moved era calculation to a central (algebra) class.
1 parent 82bc044 commit a61f1a5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/net/sharksystem/asap/ASAP.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ public class ASAP {
44
public static final int INITIAL_ERA = 0;
55
public static final int MAX_ERA = Integer.MAX_VALUE;
66

7-
static int nextEra(int workingEra) {
7+
public static int nextEra(int workingEra) {
88
if(workingEra == ASAP.MAX_ERA) {
99
return ASAP.INITIAL_ERA;
1010
}
1111
return workingEra+1;
1212
}
1313

14-
static int previousEra(int workingEra) {
14+
public static int previousEra(int workingEra) {
1515
if(workingEra == ASAP.INITIAL_ERA) {
1616
return ASAP.MAX_ERA;
1717
}

0 commit comments

Comments
 (0)