# Interface: com.pnfsoftware.jeb.util.serialization.ITypeIdProvider

Definition of a type\-id provider, mapping a type to a unique id, and vice\-versa.

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

Description: Add of types from a provider to this provider.
parameter: provider: another provider

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

Description: Get the ype\-id of a given type.
parameter: c: the non\-null type
return: 0 if the provider cannot find a corresponding type\-id for the provided type

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

Description: Get the map of type to type\-id.
return: the type\-id map

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

Description: Get the reverse type\-id map, mapping a type\-id to a type.
return: the reverse type\-id map

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

Description: Get a type by type\-id.
parameter: id: the non\-zero type\-id
return: the type, null if not found

