visad.data
Class ArrayWrapper
- java.lang.Object
-
- visad.data.ArrayWrapper
-
public class ArrayWrapper extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description ArrayWrapper(byte[] values)add the data to the cacheArrayWrapper(byte[][] values)add the data to the cacheArrayWrapper(double[] values)add the data to the cacheArrayWrapper(double[][] values)add the data to the cacheArrayWrapper(float[] values)add the data to the cacheArrayWrapper(float[][] values)add the data to the cacheArrayWrapper(int[] values)add the data to the cacheArrayWrapper(int[][] values)add the data to the cacheArrayWrapper(short[] values)add the data to the cacheArrayWrapper(short[][] values)add the data to the cache
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidfinalize()byte[]getByteArray1D()get the valuebyte[][]getByteArray2D()get the valuedouble[]getDoubleArray1D()get the valuedouble[][]getDoubleArray2D()get the valuefloat[]getFloatArray1D()get the valuefloat[][]getFloatArray2D()get the valueint[]getIntArray1D()get the valueint[][]getIntArray2D()get the valueshort[]getShortArray1D()get the valueshort[][]getShortArray2D()get the valuebooleaninMemory()voidupdateData(java.lang.Object newData)
-
-
-
Constructor Detail
-
ArrayWrapper
public ArrayWrapper(byte[] values)
add the data to the cache- Parameters:
values- the values to add
-
ArrayWrapper
public ArrayWrapper(byte[][] values)
add the data to the cache- Parameters:
values- the values to add
-
ArrayWrapper
public ArrayWrapper(float[] values)
add the data to the cache- Parameters:
values- the values to add
-
ArrayWrapper
public ArrayWrapper(float[][] values)
add the data to the cache- Parameters:
values- the values to add
-
ArrayWrapper
public ArrayWrapper(double[] values)
add the data to the cache- Parameters:
values- the values to add
-
ArrayWrapper
public ArrayWrapper(double[][] values)
add the data to the cache- Parameters:
values- the values to add
-
ArrayWrapper
public ArrayWrapper(int[] values)
add the data to the cache- Parameters:
values- the values to add
-
ArrayWrapper
public ArrayWrapper(int[][] values)
add the data to the cache- Parameters:
values- the values to add
-
ArrayWrapper
public ArrayWrapper(short[] values)
add the data to the cache- Parameters:
values- the values to add
-
ArrayWrapper
public ArrayWrapper(short[][] values)
add the data to the cache- Parameters:
values- the values to add
-
-
Method Detail
-
inMemory
public boolean inMemory()
-
updateData
public void updateData(java.lang.Object newData)
-
getByteArray1D
public byte[] getByteArray1D()
get the value- Returns:
- the value
-
getByteArray2D
public byte[][] getByteArray2D()
get the value- Returns:
- the value
-
getShortArray1D
public short[] getShortArray1D()
get the value- Returns:
- the value
-
getShortArray2D
public short[][] getShortArray2D()
get the value- Returns:
- the value
-
getIntArray1D
public int[] getIntArray1D()
get the value- Returns:
- the value
-
getIntArray2D
public int[][] getIntArray2D()
get the value- Returns:
- the value
-
getFloatArray1D
public float[] getFloatArray1D()
get the value- Returns:
- the value
-
getFloatArray2D
public float[][] getFloatArray2D()
get the value- Returns:
- the value
-
getDoubleArray1D
public double[] getDoubleArray1D()
get the value- Returns:
- the value
-
getDoubleArray2D
public double[][] getDoubleArray2D()
get the value- Returns:
- the value
-
finalize
public void finalize() throws java.lang.Throwable- Overrides:
finalizein classjava.lang.Object- Throws:
java.lang.Throwable
-
-
DMelt 3.0 © DataMelt by jWork.ORG