public abstract class ArrayColumn extends ColumnData
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getArray()
Returns the array object which holds the array data for this
column.
|
boolean |
isWritable()
Returns true, since this class can store cell values.
|
static ArrayColumn |
makeColumn(ColumnInfo base,
long rowCount)
Obtains an ArrayColumn object based on a template
object with a given number of rows.
|
static ArrayColumn |
makeColumn(ColumnInfo base,
java.lang.Object data)
Constructs a new ArrayColumn based on a given data array.
|
static ArrayColumn |
makeColumn(java.lang.String name,
java.lang.Object data)
Constructs a new ArrayColumn based on a given data array.
|
java.lang.Object |
readValue(long lrow)
Returns the value stored at a given row in this column.
|
void |
storeValue(long lrow,
java.lang.Object val)
Stores a given value in a given row for this column.
|
getColumnInfo, setColumnInfo
public boolean isWritable()
isWritable
in class ColumnData
public void storeValue(long lrow, java.lang.Object val)
ColumnData
storeValue
in class ColumnData
lrow
- the row to store it inval
- the object to storepublic java.lang.Object readValue(long lrow)
ColumnData
readValue
in class ColumnData
lrow
- the row from which to retrieve the valuepublic java.lang.Object getArray()
public static ArrayColumn makeColumn(ColumnInfo base, long rowCount)
base
- the template ColumnInfo - note this is
not the actual ColumnInfo object which will be returned
by the getColumnInfo method of the returned
ArrayColumnrowCount
- the number of rows it is to holdpublic static ArrayColumn makeColumn(ColumnInfo base, java.lang.Object data)
base
- the column info on which to base this column's infodata
- an array of primitives or objects which will form
the storage for this columnjava.lang.IllegalArgumentException
- if data isn't an array or
base.getContentClass() is incompatible with
datapublic static ArrayColumn makeColumn(java.lang.String name, java.lang.Object data)
name
- the name of the new columndata
- an array of primitives or objects which will form
the storage for this column