Class LongArrayAdapter

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

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

      • LongArrayAdapter

        public LongArrayAdapter()
    • Method Detail

      • create

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

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

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

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