Package uk.ac.rdg.resc.edal.util
Class ImmutableArray1D<T>
- java.lang.Object
-
- uk.ac.rdg.resc.edal.util.Array1D<T>
-
- uk.ac.rdg.resc.edal.util.ImmutableArray1D<T>
-
- All Implemented Interfaces:
Serializable
,Iterable<T>
,Array<T>
public class ImmutableArray1D<T> extends Array1D<T>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ImmutableArray1D(T[] values)
Create a new in-memory array.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
get(int... coords)
Gets a value from the arrayvoid
set(T value, int... coords)
Sets a value in the array (optional operation)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
ImmutableArray1D
public ImmutableArray1D(T[] values)
Create a new in-memory array.- Parameters:
values
- An array containing the data.
-
-