Class ObjectArrayColumn
java.lang.Object
uk.ac.starlink.table.ColumnData
uk.ac.starlink.table.ArrayColumn
uk.ac.starlink.table.ObjectArrayColumn
A column which provides data storage in a java array of objects.
- Author:
- Mark Taylor (Starlink)
-
Constructor Summary
ConstructorsConstructorDescriptionObjectArrayColumn(ColumnInfo base, Object[] data) Constructs a new column backed by a given array of objects. -
Method Summary
Methods inherited from class ArrayColumn
getArray, isWritable, makeColumn, makeColumn, makeColumn, readValue, storeValueMethods inherited from class ColumnData
getColumnInfo, setColumnInfo
-
Constructor Details
-
ObjectArrayColumn
Constructs a new column backed by a given array of objects. ThecontentClassof the given base column info must be compatible with the supplied data array; it should be the class of what the array is an array of. Alternatively, thebasecolumn info may have anullcontent class, in which case the column info for the new column will be set appropriately from the data array.- Parameters:
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 column- Throws:
IllegalArgumentException- ifdataisn't an array orbase.getContentClass()is incompatible withdata
-