Class RowImpl<T>

Type Parameters:
T - The type managed by the Row.
All Implemented Interfaces:
Serializable, Cloneable, Iterable<T>, Collection<T>, List<T>, RandomAccess, Row<T>

public class RowImpl<T> extends ArrayList<T> implements Row<T>, Cloneable
Implementation of the Row interface being Cloneable.
See Also:
  • Constructor Details

    • RowImpl

      @SafeVarargs public RowImpl(T... aValues)
      Constructs the RowImpl instance configured with the provided elements.
      Parameters:
      aValues - The elements to be contained in the RowImpl in the order as passed.
  • Method Details

    • get

      public T get(Header<T> aHeader, String aKey) throws HeaderMismatchException, ColumnMismatchException
      This method retrieves a value from the row by taking the index of the according column in the header of the given key (the one with the given key) and returns that value. This is possible as the values in the row and in the header have an order. This method is used as a convenience delegate by Header.get(Row, String).
      Specified by:
      get in interface Row<T>
      Parameters:
      aHeader - The header being the reference for retrieval of the value by the given key.
      aKey - The key for which to retrieve the value.
      Returns:
      The value in the row representing the key in the header.
      Throws:
      HeaderMismatchException - Thrown in case there is a mismatch between the given HeaderMismatchException and the Row, i.e. the index for the given key in the header may be out of index of the given row or the given key does not exist in the Header.
      ColumnMismatchException - in case the type defined in the column for that key does not match the type in the row identified by the given key.