Skip to content

Commit

Permalink
add EnumValue getters
Browse files Browse the repository at this point in the history
  • Loading branch information
nilswende committed Oct 25, 2024
1 parent 0d74d07 commit bb324f7
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/main/java/com/wn/dbml/model/EnumValue.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,16 @@ public class EnumValue {
private Note note;

EnumValue(Enum anEnum, String name) {
this.anEnum = anEnum;
this.name = name;
this.anEnum = Objects.requireNonNull(anEnum);
this.name = Objects.requireNonNull(name);
}

public Enum getEnum() {
return anEnum;
}

public String getName() {
return name;
}

public Note getNote() {
Expand Down

0 comments on commit bb324f7

Please sign in to comment.