Class DoubleArraySerializer

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

public class DoubleArraySerializer extends AbstractArraySerializer<double[]>
Serializer for arrays of doubles.
  • Constructor Details

    • DoubleArraySerializer

      protected DoubleArraySerializer(SerializerBuilder builder)
      Creates new instance of double array serializer.
      Parameters:
      builder - serializer builder
  • Method Details

    • serializeInternal

      protected void serializeInternal(double[] 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<double[]>
      Parameters:
      arr - container to be serialized
      generator - JSON format generator
      ctx - JSON serialization context