Class TypeToClassInitHelper
java.lang.Object
org.opendaylight.openflowjava.protocol.impl.util.TypeToClassInitHelper
Helper for initializing type to class mappings.
- Author:
- michal.polkorab
-
Constructor Summary
ConstructorDescriptionTypeToClassInitHelper
(org.opendaylight.yangtools.yang.common.Uint8 version, Map<TypeToClassKey, Class<?>> messageClassMap) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
registerTypeToClass
(short type, Class<?> clazz) Registers Class int the type to class mapping.
-
Constructor Details
-
TypeToClassInitHelper
public TypeToClassInitHelper(org.opendaylight.yangtools.yang.common.Uint8 version, Map<TypeToClassKey, Class<?>> messageClassMap) Constructor.- Parameters:
version
- protocol wire versionmessageClassMap
- map which stores type to class mapping
-
-
Method Details
-
registerTypeToClass
Registers Class int the type to class mapping.- Parameters:
type
- code value for message type / classclazz
- class corresponding to the code
-