# Class: com.pnfsoftware.jeb.util.serialization.AbstractTypeIdProvider

Base class for a type\-id provider used for serialization. Type\-id providers can be used to de\-couple the a saved object from its type name. The type\-id can be saved instead, allowing type names to change without breaking the deserialization process.

## Protected Constructor: AbstractTypeIdProvider

Description: Create a type\-id provider and initialize its type maps.

## Method: addAll
- parameter: `provider`, type: `com.pnfsoftware.jeb.util.serialization.ITypeIdProvider`


## Method: getId
- parameter: `c`, type: `java.lang.Class<?>`
- return type: `int`


## Method: getMap
- return type: `java.util.Map<java.lang.Class<?>,java.lang.Integer>`


## Method: getReverseMap
- return type: `java.util.Map<java.lang.Integer,java.lang.Class<?>>`


## Method: getType
- parameter: `typeId`, type: `int`
- return type: `java.lang.Class<?>`


## Protected Method: loadTypes
- parameter: `map`, type: `java.util.Map<java.lang.Class<?>,java.lang.Integer>`
- parameter: `movedmap`, type: `java.util.Map<java.lang.Integer,java.lang.Integer>`

Description: Populate the type\-id map and optional moved\-id map.
parameter: map: type\-to\-id map to populate
parameter: movedmap: old\-id to new\-id map to populate

