Skip to content

Commit

Permalink
Added: #getBoolean and #getByte
Browse files Browse the repository at this point in the history
Closes aikar#20 and aikar#17
  • Loading branch information
NoJokeFNA committed Mar 1, 2022
1 parent 42ca24c commit 71fe65c
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion core/src/main/java/co/aikar/idb/DbRow.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ public Float getFloat(String column, Number def) {
return get(column, def).floatValue();
}


public Double getDbl(String column) {
return ((Number) get(column)).doubleValue();
}
Expand All @@ -102,6 +101,22 @@ public String getString(String column, String def) {
return get(column, def);
}

public Boolean getBoolean(String column) {
return get(column);
}

public Boolean getBoolean(String column, Boolean def) {
return get(column, def);
}

public Byte getByte(String column) {
return get(column);
}

public Byte getByte(String column, Byte def) {
return get(column, def);
}

/**
* Removes a result, returning as proper type.
* <p/>
Expand Down

0 comments on commit 71fe65c

Please sign in to comment.