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 PositionWithPoints<E extends AbstractElement<E> & Navigation,N extends AbstractElement<N> & Navigation,D extends DbElement> extends Object
Constructor and Description |
---|
PositionWithPoints(E myself,
Class<N> elementClass,
Class<D> pointClass,
D atStartPoint,
D atEndPoint)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected abstract String |
getDescriptionAtEndPoint()
Returns the description at end point.
|
protected abstract String |
getDescriptionAtStartPoint()
Returns the description at start point.
|
protected N |
getInstance(D element)
Gets an instance of element of navigation corresponding to the element in parameter.
|
N |
getInstanceAtEndPoint()
Gets an instance of element of navigation at end point.
|
N |
getInstanceAtStartPoint()
Gets an instance of element of navigation at start point.
|
public PositionWithPoints(E myself, Class<N> elementClass, Class<D> pointClass, D atStartPoint, D atEndPoint)
myself
- Actual value.elementClass
- Class of the element of navigation (used to make instance).pointClass
- Class of the database element at the next point (used to make instance).atStartPoint
- The element at start pointatEndPoint
- The element at end pointpublic N getInstanceAtStartPoint()
public N getInstanceAtEndPoint()
protected N getInstance(D element)
element
- The element.protected abstract String getDescriptionAtStartPoint()
protected abstract String getDescriptionAtEndPoint()
Copyright © 2020 AssertJ. All rights reserved.