com.pnfsoftware.jeb.util.serialization.ITypeIdProvider |
Known Indirect Subclasses |
Definition of a type-id provider, mapping a type to a unique id, and vice-versa.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void |
addAll(ITypeIdProvider provider)
Add of types from a provider to this provider.
| ||||||||||
abstract int |
getId(Class<?> c)
Get the ype-id of a given type.
| ||||||||||
abstract Map<Class<?>, Integer> |
getMap()
Get the map of type to type-id.
| ||||||||||
abstract Map<Integer, Class<?>> |
getReverseMap()
Get the reverse type-id map, mapping a type-id to a type.
| ||||||||||
abstract Class<?> |
getType(int id)
Get a type by type-id.
|
Add of types from a provider to this provider.
provider | another provider |
---|
Get the ype-id of a given type.
c | the non-null type |
---|
Get the map of type to type-id.
Get the reverse type-id map, mapping a type-id to a type.
Get a type by type-id.
id | the non-zero type-id |
---|