Skip to content

Commit

Permalink
Release hotfix 0.0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
devjeonghwan committed Aug 20, 2023
1 parent 4268103 commit 6f2f816
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 30 deletions.
58 changes: 29 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Opack is a Java library that can serialize/deserialize between Java objects and
Gradle:
```gradle
dependencies {
implementation 'com.realtimetech:opack:0.0.10'
implementation 'com.realtimetech:opack:0.0.11'
}
```

Expand All @@ -55,7 +55,7 @@ Maven:
<dependency>
<groupId>com.realtimetech</groupId>
<artifactId>opack</artifactId>
<version>0.0.10</version>
<version>0.0.11</version>
</dependency>
```

Expand Down Expand Up @@ -275,39 +275,39 @@ public class SomeObject {
```java
OpackObject<String, OpackValue> rootObject = new OpackObject<>();

{
OpackArray<Integer> opackArray = new OpackArray<>();
opackArray.add(Integer.MAX_VALUE);
rootObject.put("array", opackArray);
}
{
OpackArray<Integer> opackArray = new OpackArray<>();
opackArray.add(Integer.MAX_VALUE);
rootObject.put("array", opackArray);
}

{
OpackArray opackArray = OpackArray.createWithArrayObject(new int[]{1, 2, 3, 4, 5, 6});
rootObject.put("unmodifiable(but, really fast) array", opackArray);
}
{
OpackArray opackArray = OpackArray.createWithArrayObject(new int[]{1, 2, 3, 4, 5, 6});
rootObject.put("unmodifiable(but, really fast) array", opackArray);
}

{
OpackObject opackObject = new OpackObject<>();
opackObject.put("int", 1);
opackObject.put("float", 1.1f);
opackObject.put("long", Long.MAX_VALUE);
opackObject.put("double", 1.1d);
{
OpackObject opackObject = new OpackObject<>();
opackObject.put("int", 1);
opackObject.put("float", 1.1f);
opackObject.put("long", Long.MAX_VALUE);
opackObject.put("double", 1.1d);

opackObject.put(1024, "2^10");
opackObject.put(
OpackArray.createWithArrayObject(new byte[]{1,2,3,4,5}),
"a lot of bytes"
);
opackObject.put(1024, "2^10");
opackObject.put(
OpackArray.createWithArrayObject(new byte[]{1,2,3,4,5}),
"a lot of bytes"
);

rootObject.put("number_map", opackObject);
}
rootObject.put("number_map", opackObject);
}

OpackArray opackArray = (OpackArray) rootObject.get("array");
OpackObject opackObject = (OpackObject) rootObject.get("number_map");
OpackArray opackArray = (OpackArray) rootObject.get("array");
OpackObject opackObject = (OpackObject) rootObject.get("number_map");

System.out.println("1024 is " + (opackObject.get(1024)));
System.out.println("Array length is " + (opackArray.length()));
System.out.println("First element is " + (opackArray.get(0)));
System.out.println("1024 is " + (opackObject.get(1024)));
System.out.println("Array length is " + (opackArray.length()));
System.out.println("First element is " + (opackArray.get(0)));
```

### To-Do
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ plugins {

group 'com.realtimetech'
archivesBaseName = "opack"
version = "0.0.10"
version = "0.0.11"

compileJava.options.encoding = 'UTF-8'

Expand Down

0 comments on commit 6f2f816

Please sign in to comment.