Skip to content

Commit

Permalink
Merge pull request #36 from HttpMarco/feature
Browse files Browse the repository at this point in the history
Feature: Add more assortment properties
  • Loading branch information
HttpMarco authored Feb 26, 2023
2 parents 05facd7 + c0c12cb commit 12272d9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/net/http/aeon/elements/ObjectPrimitive.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ public boolean asBoolean() {
return Boolean.parseBoolean(value.toString());
}

public double asDouble() {
return Double.parseDouble(value.toString());
}

public short asShort() {
return Short.parseShort(value.toString());
}
Expand Down

0 comments on commit 12272d9

Please sign in to comment.