Class DoubleArrayAdapter

  • All Implemented Interfaces:
    org.infinispan.protostream.containers.ElementContainerAdapter<double[]>, org.infinispan.protostream.containers.IndexedElementContainerAdapter<double[],​Double>

    @ProtoAdapter(double[][].class)
    @ProtoName("DoubleArray")
    public final class DoubleArrayAdapter
    extends Object
    implements org.infinispan.protostream.containers.IndexedElementContainerAdapter<double[],​Double>
    Since:
    4.4
    Author:
    [email protected]
    • Constructor Detail

      • DoubleArrayAdapter

        public DoubleArrayAdapter()
    • Method Detail

      • create

        @ProtoFactory
        public double[] create​(int size)
      • getNumElements

        public int getNumElements​(double[] array)
        Specified by:
        getNumElements in interface org.infinispan.protostream.containers.ElementContainerAdapter<double[]>
      • getElement

        public Double getElement​(double[] array,
                                 int index)
        Specified by:
        getElement in interface org.infinispan.protostream.containers.IndexedElementContainerAdapter<double[],​Double>
      • setElement

        public void setElement​(double[] array,
                               int index,
                               Double element)
        Specified by:
        setElement in interface org.infinispan.protostream.containers.IndexedElementContainerAdapter<double[],​Double>