Skip to content

Commit a4d6f60

Browse files
committed
refactor:상수 관리 enum 클래스 생성
1 parent 0ea7745 commit a4d6f60

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package calculator.constant;
2+
3+
public enum CalConst {
4+
MINIMUM_LENGTH_IF_EXIST_CUSTOM_SEPARATOR(5),
5+
START_INDEX_OF_CALCULATING(5),
6+
END_INDEX_OF_CUSTOM_SEPARATOR(3),
7+
INDEX_OF_CUSTOM_SEPARATOR(2),
8+
;
9+
10+
private final int value;
11+
12+
CalConst(int value) {
13+
this.value = value;
14+
}
15+
16+
public int value() {
17+
return value;
18+
}
19+
}

0 commit comments

Comments
 (0)