Skip to content

Commit 8349cd6

Browse files
committed
converted constants from enum to interface
Signed-off-by: Konstantin Läufer <[email protected]>
1 parent 4ae91f7 commit 8349cd6

File tree

1 file changed

+4
-8
lines changed
  • src/main/java/edu/luc/etl/cs313/android/simplestopwatch/common

1 file changed

+4
-8
lines changed

src/main/java/edu/luc/etl/cs313/android/simplestopwatch/common/Constants.java

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,8 @@
33
/**
44
* Constants for the time calculations used by the stopwatch.
55
*/
6-
public enum Constants {
7-
8-
;
9-
10-
public static final int SEC_PER_TICK = 1;
11-
public static final int SEC_PER_MIN = 60;
12-
public static final int SEC_PER_HOUR = 3600;
13-
6+
public interface Constants {
7+
int SEC_PER_TICK = 1;
8+
int SEC_PER_MIN = 60;
9+
int SEC_PER_HOUR = 3600;
1410
}

0 commit comments

Comments
 (0)