-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore(MeetingCategory): 번개 -> 번쩍으로 변경 * style(MeetingCategory): 코드 포맷터 적용 * chore: 메이커스 리드 삭제
- Loading branch information
Showing
2 changed files
with
19 additions
and
20 deletions.
There are no files selected for viewing
35 changes: 18 additions & 17 deletions
35
main/src/main/java/org/sopt/makers/crew/main/entity/meeting/enums/MeetingCategory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,29 @@ | ||
package org.sopt.makers.crew.main.entity.meeting.enums; | ||
|
||
import java.util.Arrays; | ||
|
||
import org.sopt.makers.crew.main.global.exception.BadRequestException; | ||
|
||
public enum MeetingCategory { | ||
STUDY("스터디"), | ||
LECTURE("강연"), | ||
LIGHTNING("번개"), | ||
EVENT("행사"), | ||
SEMINAR("세미나"); | ||
STUDY("스터디"), | ||
LECTURE("강연"), | ||
LIGHTNING("번쩍"), | ||
EVENT("행사"), | ||
SEMINAR("세미나"); | ||
|
||
private final String value; | ||
private final String value; | ||
|
||
MeetingCategory(String value) { | ||
this.value = value; | ||
} | ||
MeetingCategory(String value) { | ||
this.value = value; | ||
} | ||
|
||
public static MeetingCategory ofValue(String dbData) { | ||
return Arrays.stream(MeetingCategory.values()).filter(v -> v.getValue().equals(dbData)) | ||
.findFirst().orElseThrow(() -> new BadRequestException( | ||
String.format("MeetingCategory 클래스에 value = [%s] 값을 가진 enum 객체가 없습니다.", dbData))); | ||
} | ||
public static MeetingCategory ofValue(String dbData) { | ||
return Arrays.stream(MeetingCategory.values()).filter(v -> v.getValue().equals(dbData)) | ||
.findFirst().orElseThrow(() -> new BadRequestException( | ||
String.format("MeetingCategory 클래스에 value = [%s] 값을 가진 enum 객체가 없습니다.", dbData))); | ||
} | ||
|
||
public String getValue() { | ||
return value; | ||
} | ||
public String getValue() { | ||
return value; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters