Class PositionWithColumns<E extends AbstractElement<E> & Navigation,N extends AbstractElement<N> & Navigation,D extends DbElement>

java.lang.Object
org.assertj.db.navigation.Position<E,N,D>
org.assertj.db.navigation.PositionWithColumns<E,N,D>
Type Parameters:
E - The class of the actual position (an sub-class of AbstractElement and of Navigation).
N - The class of the next position where the navigation go (an sub-class of AbstractElement and of Navigation).
D - The class of the database element on which is the next position (an sub-class of DbElement).

public abstract class PositionWithColumns<E extends AbstractElement<E> & Navigation,N extends AbstractElement<N> & Navigation,D extends DbElement> extends Position<E,N,D>
Position with columns during navigation.
Since:
1.1.0
Author:
Régis Pouiller
  • Constructor Details

    • PositionWithColumns

      public PositionWithColumns(E myself, Class<N> elementClass)
      Constructor.
      Parameters:
      myself - Actual value.
      elementClass - Class of the element of navigation (used to make instance).
  • Method Details

    • getInstance

      public N getInstance(List<D> elementsList, List<String> columnsNameList, String columnName, CaseComparison comparison)
      Gets an instance of element of navigation corresponding to the column name. If this instance is already instanced, the method returns it from the cache.
      Parameters:
      elementsList - List of elements.
      columnsNameList - List of the columns name.
      columnName - Name of the column of the element on which is the instance of element of navigation.
      comparison - Case comparison for column name.
      Returns:
      The instance of element of navigation.