From 05facd72424850ba6478b673f3a2e7ecdf2e78b9 Mon Sep 17 00:00:00 2001 From: Mirco Lindenau Date: Tue, 14 Feb 2023 19:16:15 +0100 Subject: [PATCH] Feature: Add more assortment properties --- .../net/http/aeon/elements/ObjectAssortment.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/main/java/net/http/aeon/elements/ObjectAssortment.java b/src/main/java/net/http/aeon/elements/ObjectAssortment.java index a434357..be68b28 100644 --- a/src/main/java/net/http/aeon/elements/ObjectAssortment.java +++ b/src/main/java/net/http/aeon/elements/ObjectAssortment.java @@ -43,6 +43,18 @@ public void append(String key, int element) { units.put(key, new ObjectPrimitive(element)); } + public void append(String key, double element) { + units.put(key, new ObjectPrimitive(element)); + } + + public void append(String key, float element) { + units.put(key, new ObjectPrimitive(element)); + } + + public void append(String key, boolean element) { + units.put(key, new ObjectPrimitive(element)); + } + public ObjectUnit get(String key) { return this.units.get(key); }