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 Position<E extends AbstractElement<E> & Navigation,N extends AbstractElement<N> & Navigation,D extends DbElement> extends Object
Constructor and Description |
---|
Position(E myself,
Class<N> elementClass)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected D |
getDbElement(List<D> dbElementsList,
int index)
Returns the
Row at the index in parameter. |
protected abstract String |
getDescription(int index)
Returns the description.
|
N |
getInstance(List<D> elementsList)
Gets an instance of element of navigation corresponding to the next index.
|
N |
getInstance(List<D> elementsList,
int index)
Gets an instance of element of navigation corresponding to the index.
|
protected D getDbElement(List<D> dbElementsList, int index)
Row
at the index
in parameter.dbElementsList
- List of db elements.index
- The index corresponding to the Row
.Row
.AssertJDBException
- If the index
is out of the bounds.public N getInstance(List<D> elementsList)
elementsList
- List of elements.public N getInstance(List<D> elementsList, int index)
elementsList
- List of elements.index
- Index of the element on which is the instance of element of navigation.protected abstract String getDescription(int index)
index
- Index of the value.Copyright © 2020 AssertJ. All rights reserved.