uk.ac.starlink.table

## Class ConstantColumn

- java.lang.Object
- - uk.ac.starlink.table.ColumnData
  - - uk.ac.starlink.table.ConstantColumn

-     public class ConstantColumn
      extends ColumnData

  Represents a column which has the same value in every row.
  Since:
    19 Sep 2006

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ConstantColumn(ColumnInfo colinfo, java.lang.Object value)` Constructs a new column with a given metadata object and constant datum.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.Object` | `readValue(long irow)` Returns the value stored at a given row in this column.

    - ### Methods inherited from class uk.ac.starlink.table.ColumnData

      `getColumnInfo, isWritable, setColumnInfo, storeValue`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ConstantColumn

          public ConstantColumn(ColumnInfo colinfo,
                                java.lang.Object value)

      Constructs a new column with a given metadata object and constant datum.
      Parameters:
        `colinfo` - column metadata
        `value` - value to be found in every cell of this column

  - ### Method Detail

    - #### readValue

          public java.lang.Object readValue(long irow)

      Description copied from class: `ColumnData`
      Returns the value stored at a given row in this column.
      Specified by:
        `readValue` in class `ColumnData`
      Parameters:
        `irow` - the row from which to retrieve the value
      Returns:
        the value stored at `irow`