jackson-datatype-trove

Add-on datatype-support module for Jackson (http://jackson.codehaus.org) that handles Trove (http://trove.starlight-systems.com/) types

License

License

Categories

Categories

Data Jackson JSON
GroupId

GroupId

com.targomo
ArtifactId

ArtifactId

jackson-datatype-trove
Last Version

Last Version

0.0.6
Release Date

Release Date

Type

Type

jar
Description

Description

jackson-datatype-trove
Add-on datatype-support module for Jackson (http://jackson.codehaus.org) that handles Trove (http://trove.starlight-systems.com/) types
Project URL

Project URL

https://github.com/targomo/targomo-jackson-datatype-trove
Source Code Management

Source Code Management

http://github.com/targomo/targomo-jackson-datatype-trove/tree/master

Download jackson-datatype-trove

How to add to project

<!-- https://jarcasting.com/artifacts/com.targomo/jackson-datatype-trove/ -->
<dependency>
    <groupId>com.targomo</groupId>
    <artifactId>jackson-datatype-trove</artifactId>
    <version>0.0.6</version>
</dependency>
// https://jarcasting.com/artifacts/com.targomo/jackson-datatype-trove/
implementation 'com.targomo:jackson-datatype-trove:0.0.6'
// https://jarcasting.com/artifacts/com.targomo/jackson-datatype-trove/
implementation ("com.targomo:jackson-datatype-trove:0.0.6")
'com.targomo:jackson-datatype-trove:jar:0.0.6'
<dependency org="com.targomo" name="jackson-datatype-trove" rev="0.0.6">
  <artifact name="jackson-datatype-trove" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.targomo', module='jackson-datatype-trove', version='0.0.6')
)
libraryDependencies += "com.targomo" % "jackson-datatype-trove" % "0.0.6"
[com.targomo/jackson-datatype-trove "0.0.6"]

Dependencies

compile (4)

Group / Artifact Type Version
com.fasterxml.jackson.core : jackson-databind jar [2.9.9,)
com.fasterxml.jackson.core : jackson-core jar [2.9.9,)
com.fasterxml.jackson.datatype : jackson-datatype-joda jar [2.9.9,)
net.sf.trove4j : trove4j jar 3.0.3

test (3)

Group / Artifact Type Version
junit : junit jar 4.12
joda-time : joda-time jar 2.1
org.assertj : assertj-core jar 3.6.2

Project Modules

There are no modules declared in this project.

targomo-jackson-datatype-trove

This module facilitates serialization and deserialization of certain Trove objects. So far it supports:

  • TIntIntMap
  • TIntFloatMap
  • TIntObjectMap
  • TObjectIntMap

This is a forked project from https://bitbucket.org/marshallpierce/jackson-datatype-trove. It has been slightly amended to work with our jackson version and we added a few serializers/deserializers. In the future we will potentially add more of them.

To include add to maven:

<dependency>
    <groupId>com.targomo</groupId>
    <artifactId>jackson-datatype-trove</artifactId>
    <version>0.0.7</version>
</dependency>

To include to your Jackson Object Mapper execute:

ObjectMapper om = new ObjectMapper();
//-1 is the "null" value representative for integer values
//-1.0f is the "null" value representative for float values
om.registerModule(new JodaModule()) 
        .registerModule(new TroveModule(-1, -1.0f));  

Change Log:

Version 0.0.7

  • Update jackson to 2.10.1
  • Update nexus repository

Version 0.0.6

  • Updated jackson to 2.9.9
  • Updated surefire to 2.22.2 and disabled class loader
  • gitlab-ci and settings updated

Version 0.0.5

  • added no_entry_value for float types

Version 0.0.4

  • added deserialization/serialization implementations for TIntFloatMap

Version 0.0.3

  • initial import from private repo
com.targomo

Targomo

location, data, analytics

Versions

Version
0.0.6
0.0.5
0.0.4
0.0.3