Class DoubleArrayAdapter
- java.lang.Object
-
- org.infinispan.protostream.types.java.arrays.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 Summary
Constructors Constructor Description DoubleArrayAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]
create(int size)
Double
getElement(double[] array, int index)
int
getNumElements(double[] array)
void
setElement(double[] array, int index, Double element)
-
-
-
Method Detail
-
create
@ProtoFactory public double[] create(int size)
-
getNumElements
public int getNumElements(double[] array)
- Specified by:
getNumElements
in interfaceorg.infinispan.protostream.containers.ElementContainerAdapter<double[]>
-
getElement
public Double getElement(double[] array, int index)
- Specified by:
getElement
in interfaceorg.infinispan.protostream.containers.IndexedElementContainerAdapter<double[],Double>
-
-