Class ShortArrayWrapper
- java.lang.Object
-
- org.eclipse.nebula.visualization.widgets.datadefinition.ShortArrayWrapper
-
- All Implemented Interfaces:
IPrimaryArrayWrapper
public class ShortArrayWrapper extends java.lang.Object implements IPrimaryArrayWrapper
A wrapper for short[].
-
-
Field Summary
Fields Modifier and Type Field Description private short[]
data
-
Constructor Summary
Constructors Constructor Description ShortArrayWrapper(short[] data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
get(int i)
Get the array element value at index i.int
getSize()
Get size of the array.void
setData(short[] data)
-
-
-
Method Detail
-
setData
public void setData(short[] data)
-
get
public double get(int i)
Description copied from interface:IPrimaryArrayWrapper
Get the array element value at index i.- Specified by:
get
in interfaceIPrimaryArrayWrapper
- Parameters:
i
- index- Returns:
- the value at index i.
-
getSize
public int getSize()
Description copied from interface:IPrimaryArrayWrapper
Get size of the array.- Specified by:
getSize
in interfaceIPrimaryArrayWrapper
- Returns:
- size of the array.
-
-