Class ListSerializer

java.lang.Object
org.opendaylight.openflowjava.protocol.impl.util.ListSerializer

public final class ListSerializer extends Object
Serializes list items and their headers.
Author:
michal.polkorab
  • Method Details

    • serializeList

      public static <E extends org.opendaylight.yangtools.yang.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 serialized
      keyMaker - creates key for registry lookup
      registry - stores serializers
      outBuffer - output buffer
    • serializeHeaderList

      public static <E extends org.opendaylight.yangtools.yang.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 serialized
      keyMaker - creates key for registry lookup
      registry - stores serializers
      outBuffer - output buffer