Class LongArraySerializer

All Implemented Interfaces:
javax.json.bind.serializer.JsonbSerializer<long[]>, RuntimeTypeInfo, CurrentItem<long[]>, EmbeddedItem

public class LongArraySerializer extends AbstractArraySerializer<long[]>
Serializer for arrays of longs.
  • Constructor Details

    • LongArraySerializer

      protected LongArraySerializer(SerializerBuilder builder)
      Creates new array of long array serializer.
      Parameters:
      builder - serializer builder
  • Method Details

    • serializeInternal

      protected void serializeInternal(long[] arr, javax.json.stream.JsonGenerator generator, javax.json.bind.serializer.SerializationContext ctx)
      Description copied from class: AbstractContainerSerializer
      Serialize content of provided container.
      Specified by:
      serializeInternal in class AbstractContainerSerializer<long[]>
      Parameters:
      arr - container to be serialized
      generator - JSON format generator
      ctx - JSON serialization context