Beispiel #1
0
 @Override
 public MapleTreeStage next() {
   final int index = this.ordinal() + 1;
   if (index > MapleTreeStage.values().length - 1) {
     return this;
   }
   return MapleTreeStage.values()[index];
 }
Beispiel #2
0
 @Override
 public MapleTreeStage previous() {
   final int index = this.ordinal() - 1;
   if (index < 0) {
     return this;
   }
   return MapleTreeStage.values()[index];
 }
Beispiel #3
0
 @Override
 public int getMaxStage() {
   return MapleTreeStage.values().length - 1;
 }