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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
arraycopy(int srcPos, Object dest, int destPos, long length)
Copy all or a portion to dest array.T
get(long elem)
Get the ith element.long
length()
Number of elements.-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
-
-
-
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.
-
-