Skip to content

Commit

Permalink
Add getString() to Literal
Browse files Browse the repository at this point in the history
  • Loading branch information
jkschneider committed Jul 10, 2024
1 parent 78b97b5 commit 1fc661b
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ public boolean isNotNull() {
return !isNull();
}

public String getString() {
return getValue(String.class);
}

public <@Nullable T> T getValue(Class<T> type) {
return getValue(mapper.constructType(type));
}
Expand Down

0 comments on commit 1fc661b

Please sign in to comment.