Skip to content

Commit

Permalink
🪲 Added get/putBitSet() to MapType since it was missing.
Browse files Browse the repository at this point in the history
  • Loading branch information
XyperCode committed Oct 28, 2023
1 parent 9524a13 commit 89ff24d
Show file tree
Hide file tree
Showing 22 changed files with 50 additions and 8 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
e5d2c177d3189e68551ce2443b50dd97
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
d42f9ea149b739b0aeb0f1ba352304691292d086
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
c5b1ce849147156bc129bdba331c5664e5e7d3039625bf72d6c7fac597320bcf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
298d8a636c90b74360e8f12220b68345dbecad40fb146352506f0e526bed11e884da75c89571bcc672ccab18559cd5537e88fc9ec8295c2e33bb09d20f8f4a0b
Binary file not shown.
1 change: 1 addition & 0 deletions .mvnrepo/io/github/ultreon/ubo/1.2.1/ubo-1.2.1.jar.md5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
aa94c342667399fb398b2073029f8687
1 change: 1 addition & 0 deletions .mvnrepo/io/github/ultreon/ubo/1.2.1/ubo-1.2.1.jar.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1ae27c0ccbc338149ca46a6b1394edacf806f0b1
1 change: 1 addition & 0 deletions .mvnrepo/io/github/ultreon/ubo/1.2.1/ubo-1.2.1.jar.sha256
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2f4c6c2537867f4a6f4f0c5fcfc2dfc8c9cb5c30c51764fa017080413ad0126f
1 change: 1 addition & 0 deletions .mvnrepo/io/github/ultreon/ubo/1.2.1/ubo-1.2.1.jar.sha512
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
98622a4e2b3395fdf457de7f11bb02dddef2e983c046e6c542019ef375e6d1cd07dc75cfc65e0c8643979026819f410954db26bd6d10fe6dd6352fafff28ebe3
8 changes: 8 additions & 0 deletions .mvnrepo/io/github/ultreon/ubo/1.2.1/ubo-1.2.1.pom
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>io.github.ultreon</groupId>
<artifactId>ubo</artifactId>
<version>1.2.1</version>
</project>
1 change: 1 addition & 0 deletions .mvnrepo/io/github/ultreon/ubo/1.2.1/ubo-1.2.1.pom.md5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0a185a0ab7da87197b5eaa4334afd410
1 change: 1 addition & 0 deletions .mvnrepo/io/github/ultreon/ubo/1.2.1/ubo-1.2.1.pom.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7f9d76f47e20235ef810ab5f53c2bc0ed73684f1
1 change: 1 addition & 0 deletions .mvnrepo/io/github/ultreon/ubo/1.2.1/ubo-1.2.1.pom.sha256
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
8f59976cba26b240aa8d5a8ad7f689d651fc3a9ae792fe85f4a1b9129aadf3e3
1 change: 1 addition & 0 deletions .mvnrepo/io/github/ultreon/ubo/1.2.1/ubo-1.2.1.pom.sha512
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
926e395c9f97dc44ad4291a521fce5777ea224fe1a1a3c02bb21e22bcf3ba5093cd29e3b7dbfbcbd0db778448e744719b6a07109152745475866e8937d23f1a1
7 changes: 4 additions & 3 deletions .mvnrepo/io/github/ultreon/ubo/maven-metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
<groupId>io.github.ultreon</groupId>
<artifactId>ubo</artifactId>
<versioning>
<latest>1.2.0</latest>
<release>1.2.0</release>
<latest>1.2.1</latest>
<release>1.2.1</release>
<versions>
<version>1.2.0</version>
<version>1.2.1</version>
</versions>
<lastUpdated>20231028021234</lastUpdated>
<lastUpdated>20231028050624</lastUpdated>
</versioning>
</metadata>
2 changes: 1 addition & 1 deletion .mvnrepo/io/github/ultreon/ubo/maven-metadata.xml.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
995790aa017f995fa27356f139a97fad
ff85657113244db7643e1380b361fed8
2 changes: 1 addition & 1 deletion .mvnrepo/io/github/ultreon/ubo/maven-metadata.xml.sha1
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3ccc8a5c22f57b7d49cafe46ecb17955dd7cdc6b
07030efe672ba95b5b56562e2ca5523d4caaa12d
2 changes: 1 addition & 1 deletion .mvnrepo/io/github/ultreon/ubo/maven-metadata.xml.sha256
Original file line number Diff line number Diff line change
@@ -1 +1 @@
f2e5bb68c4b5306e936e603351529eaf3d58d7b7e551140abc087518e0943c63
6809908c055cdae0a67b6c7df503304c707b006d7c56c5fb0ea4d05d9e97d896
2 changes: 1 addition & 1 deletion .mvnrepo/io/github/ultreon/ubo/maven-metadata.xml.sha512
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4cdd7b100eebefbd3cb5c3fbc531a60eaa3e174fcd6918dd2de6ed56228062fa1bdbc4117a28094a594e09251578ea33e1dbac7808c3613371ffefd7b579dc37
d30efa7a91dd28ba2f8322e15cca28de83daa57f799e4164039c1f15468cecae694e74bc14edc6c57f9dc0352b53f41bcff3ffa5b935f8bae87b1687e0c83201
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
project_version=1.2.0
project_version=1.2.1
21 changes: 21 additions & 0 deletions src/main/java/com/ultreon/data/types/MapType.java
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,14 @@ public void putDoubleArray(String key, double[] value) {
put(key, new DoubleArrayType(value));
}

public void putBitSet(String key, byte[] value) {
put(key, new BitSetType(value));
}

public void putBitSet(String key, BitSet value) {
put(key, new BitSetType(value));
}

public void putUUID(String key, UUID value) {
put(key, new UUIDType(value));
}
Expand Down Expand Up @@ -383,6 +391,18 @@ public double[] getDoubleArray(String key, double[] def) {
return def;
}

public BitSet getBitSet(String key) {
return getBitSet(key, null);
}

public BitSet getBitSet(String key, BitSet def) {
IType<?> iType = get(key);
if (iType instanceof BitSetType) {
return ((BitSetType) iType).getValue();
}
return def;
}

public MapType getMap(String key) {
return getMap(key, null);
}
Expand All @@ -394,6 +414,7 @@ public MapType getMap(String key, MapType def) {
}
return def;
}

@SafeVarargs
public final <T extends IType<?>> ListType<T> getList(String key, T... type) {
return getList(key, new ListType<>(type));
Expand Down

0 comments on commit 89ff24d

Please sign in to comment.