From c0c12cb73cba0d9452fa9d249918912b4fd55e3c Mon Sep 17 00:00:00 2001 From: Mirco Lindenau Date: Tue, 14 Feb 2023 19:19:48 +0100 Subject: [PATCH] Feature: Add more assortment properties --- src/main/java/net/http/aeon/elements/ObjectPrimitive.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/net/http/aeon/elements/ObjectPrimitive.java b/src/main/java/net/http/aeon/elements/ObjectPrimitive.java index 039eacc..1916e93 100644 --- a/src/main/java/net/http/aeon/elements/ObjectPrimitive.java +++ b/src/main/java/net/http/aeon/elements/ObjectPrimitive.java @@ -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()); }