@@ -6,10 +6,10 @@ Licensed under [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0.
66
77## Status
88
9- [ ![ Maven Central] ( https://maven-badges.herokuapp.com/maven-central/com.fasterxml. jackson.datatype/jackson-datatype-hppc/badge.svg )] ( https://maven-badges.herokuapp.com/maven-central/com.fasterxml .jackson.datatype/jackson-datatype-hppc/ )
10- [ ![ Javadoc] ( https://javadoc.io/badge/com.fasterxml. jackson.datatype/jackson-datatype-hppc.svg )] ( https://www.javadoc.io/doc/com.fasterxml .jackson.datatype/jackson-datatype-hppc )
9+ [ ![ Maven Central] ( https://maven-badges.herokuapp.com/maven-central/tools. jackson.datatype/jackson-datatype-hppc/badge.svg )] ( https://maven-badges.herokuapp.com/maven-central/tools .jackson.datatype/jackson-datatype-hppc/ )
10+ [ ![ Javadoc] ( https://javadoc.io/badge/tools. jackson.datatype/jackson-datatype-hppc.svg )] ( https://www.javadoc.io/doc/tools .jackson.datatype/jackson-datatype-hppc )
1111
12- Currently (2.7) following things are supported:
12+ Currently, the following things are supported:
1313
1414* Serializing of all 'XxxContainer' (IntContainer, IntSet, IntArrayList, LongContainer, DoubleContainer etc) types
1515* Deserialization of all ` int ` valued container types
@@ -28,18 +28,17 @@ contribute code. Jackson team is happy to merge code contributions, and help wit
2828
2929### JDK version
3030
31- Starting with version 2.6 of the module, minimum JDK is 1.7. This is because
32- HPPC 0.7.1 requires it. Jackson core components only require 1.6.
31+ Starting with version 3.0 of the module, minimum JDK is 17.
3332
3433### Maven dependency
3534
3635To use module on Maven-based projects, use following dependency:
3736
3837``` xml
3938<dependency >
40- <groupId >com.fasterxml .jackson.datatype</groupId >
39+ <groupId >tools .jackson.datatype</groupId >
4140 <artifactId >jackson-datatype-hppc</artifactId >
42- <version >2.5 .3</version >
41+ <version >3.0 .3</version >
4342</dependency >
4443```
4544
@@ -51,8 +50,9 @@ To use the the Module in Jackson, simply register it with the ObjectMapper insta
5150Modules are registered through ObjectMapper, like so:
5251
5352``` java
54- ObjectMapper mapper = new ObjectMapper ();
55- mapper. register(new HppcModule ());
53+ ObjectMapper mapper = JsonMapper . builder()
54+ .addModule(new HppcModule ())
55+ .build();
5656```
5757
5858after which you can read JSON as HPPC types, as well as write HPPC types as JSON. It's really that simple; convenient and efficient.
0 commit comments