Class Row.RowColumn

java.lang.Object
org.litebridgedb.db.spi.Row.RowColumn
Enclosing class:
Row

public final class Row.RowColumn extends Object
A combination of a column and its associated value within a row.

This class acts as a wrapper to tie a Column instance with its value in a specific row. It provides methods to access the column, its value, and a string representation of the pairing.

Instances of this class are immutable and primarily used as part of the Row class to manage column-value associations.

  • Constructor Details

    • RowColumn

      public RowColumn(Column column)
      Construct a new RowColumn instance by associating the specified column with a row.
      Parameters:
      column - the Column to be associated with this row; must not be null
  • Method Details

    • column

      public Column column()
      Retrieve the Column instance associated with this RowColumn.
      Returns:
      the associated Column instance
    • value

      public @Nullable Object value()
      Retrieve the value associated with the current Column in the context of the row.
      Returns:
      the value corresponding to the associated Column
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object