Class NativeTypeIdProvider

java.lang.Object
com.pnfsoftware.jeb.util.serialization.AbstractTypeIdProvider
com.pnfsoftware.jeb.util.serialization.NativeTypeIdProvider
All Implemented Interfaces:
ITypeIdProvider

public class NativeTypeIdProvider extends AbstractTypeIdProvider
A standard provider for native Java types. Currently, this provider supports: Currently, serializing any other non-native type (or non @Ser type) will result in undefined behavior.

Caveats regarding collections and maps: when serializing those objects, optional parameters such as the initial capacity, the load factor, or even a custom comparator (for tree-sets/maps) are not persisted. Therefore, they cannot be automatically restored. It is up to the implementation to wrap such objects in higher-level classes using a custom constructor that can call the original object (collection or map) constructor's with proper parameters. This is especially critical for TreeMap or TreeSet using custom comparators.