Sort members.

This commit is contained in:
Gary Gregory 2019-12-30 13:46:05 -05:00
parent c8289bfcc9
commit de7b773087
1 changed files with 14 additions and 15 deletions

View File

@ -66,26 +66,11 @@ public class StopWatch {
UNSPLIT UNSPLIT
} }
/** /**
* Enumeration type which indicates the status of stopwatch. * Enumeration type which indicates the status of stopwatch.
*/ */
private enum State { private enum State {
UNSTARTED {
@Override
boolean isStarted() {
return false;
}
@Override
boolean isStopped() {
return true;
}
@Override
boolean isSuspended() {
return false;
}
},
RUNNING { RUNNING {
@Override @Override
boolean isStarted() { boolean isStarted() {
@ -127,6 +112,20 @@ public class StopWatch {
boolean isSuspended() { boolean isSuspended() {
return true; return true;
} }
},
UNSTARTED {
@Override
boolean isStarted() {
return false;
}
@Override
boolean isStopped() {
return true;
}
@Override
boolean isSuspended() {
return false;
}
}; };
/** /**