Skip to content

Commit

Permalink
Feature: Add more assortment properties
Browse files Browse the repository at this point in the history
  • Loading branch information
HttpMarco committed Feb 14, 2023
1 parent 5868b74 commit 05facd7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/main/java/net/http/aeon/elements/ObjectAssortment.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 05facd7

Please sign in to comment.