Skip to content

Commit

Permalink
style(MeetingCategory): 코드 포맷터 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
mikekks committed Dec 16, 2024
1 parent efd2a06 commit 31462a7
Showing 1 changed file with 18 additions and 17 deletions.
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;
}
}

0 comments on commit 31462a7

Please sign in to comment.