Package ucar.array

Interface Storage<T>

  • All Superinterfaces:
    Iterable<T>
    All Known Subinterfaces:
    StorageMutable<T>
    All Known Implementing Classes:
    StructureDataStorageBB

    public interface Storage<T>
    extends Iterable<T>
    Abstraction for storing Array data. Always deals with storage as 1-dimensional.
    • Method Detail

      • length

        long length()
        Number of elements.
      • get

        T get​(long elem)
        Get the ith element.
      • arraycopy

        void arraycopy​(int srcPos,
                       Object dest,
                       int destPos,
                       long length)
        Copy all or a portion to dest array. Mimic of System.arraycopy(Object src, int srcPos, Object dest, int destPos, int length);
        Parameters:
        srcPos - starting pos in this source.
        dest - destination primitive array of type T.
        destPos - starting pos in destination.
        length - copy these number of elements.