Package org.assertj.db.navigation
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 ofAbstractElement
and ofNavigation
).N
- The class of the next position where the navigation go (an sub-class ofAbstractElement
and ofNavigation
).D
- The class of the database element on which is the next position (an sub-class ofDbElement
).
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetInstance
(List<D> elementsList, List<String> columnsNameList, String columnName, CaseComparison comparison) Gets an instance of element of navigation corresponding to the column name.Methods inherited from class org.assertj.db.navigation.Position
getDbElement, getDescription, getInstance, getInstance
-
Constructor Details
-
PositionWithColumns
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.
-