Class ListSerializer
java.lang.Object
org.opendaylight.openflowjava.protocol.impl.util.ListSerializer
Serializes list items and their headers.
- Author:
- michal.polkorab
-
Method Summary
Modifier and TypeMethodDescriptionstatic <E extends org.opendaylight.yangtools.binding.DataObject>
voidserializeHeaderList
(List<E> list, TypeKeyMaker<E> keyMaker, SerializerRegistry registry, io.netty.buffer.ByteBuf outBuffer) Serializes headers of items in list.static <E extends org.opendaylight.yangtools.binding.DataObject>
voidserializeList
(List<E> list, TypeKeyMaker<E> keyMaker, SerializerRegistry registry, io.netty.buffer.ByteBuf outBuffer) Serializes item list.
-
Method Details
-
serializeList
public static <E extends org.opendaylight.yangtools.binding.DataObject> void serializeList(List<E> list, TypeKeyMaker<E> keyMaker, SerializerRegistry registry, io.netty.buffer.ByteBuf outBuffer) Serializes item list.- Parameters:
list
- list of items to be serializedkeyMaker
- creates key for registry lookupregistry
- stores serializersoutBuffer
- output buffer
-
serializeHeaderList
public static <E extends org.opendaylight.yangtools.binding.DataObject> void serializeHeaderList(List<E> list, TypeKeyMaker<E> keyMaker, SerializerRegistry registry, io.netty.buffer.ByteBuf outBuffer) Serializes headers of items in list.- Parameters:
list
- list of items to be serializedkeyMaker
- creates key for registry lookupregistry
- stores serializersoutBuffer
- output buffer
-