jackson-datatypes-collections
jackson-datatypes-collections copied to clipboard
Add support for Guava `ImmutableIntArray` / `ImmutableDoubleArray`
Add serde support for ImmutableIntArray and ImmutableDoubleArray.
Note that for simplicity, the deserializers currently delegate to the implementations in PrimitiveArrayDeserializers, passing the deserialize primitive arrays to the respective copyOf factory methods. The benefit is that all of the various edge cases of reading ints / doubles is handled already in those implementations. The downside is that we make an extra copy of the array when we pass it to the copyOf method, but at least there is no waste in the array sizing in this case.