Class DefaultNodeBuilder<T,U extends Node<T>,V extends Node<T>,X extends NodeBuilder<T,U,X>>
- java.lang.Object
-
- io.github.henryssondaniel.teacup.core.DefaultBuilder<U,V>
-
- io.github.henryssondaniel.teacup.core.DefaultNodeBuilder<T,U,V,X>
-
- Type Parameters:
T
- the actual typeU
- the node typeV
- the node setter typeX
- the node builder type
- All Implemented Interfaces:
Builder<U>
,NodeBuilder<T,U,X>
public abstract class DefaultNodeBuilder<T,U extends Node<T>,V extends Node<T>,X extends NodeBuilder<T,U,X>> extends DefaultBuilder<U,V> implements NodeBuilder<T,U,X>
Default implementation of theNodeBuilder
.- Since:
- 1.0
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DefaultNodeBuilder(V setter)
Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
doAssertion(GenericObjectAssert<T,?> assertion)
Define what should happen whensetAssertion(GenericObjectAssert)
is called.X
setAssertion(GenericObjectAssert<T,?> assertion)
Sets the assertion.-
Methods inherited from class io.github.henryssondaniel.teacup.core.DefaultBuilder
build, createImplementation, getImplementation
-
-
-
-
Constructor Detail
-
DefaultNodeBuilder
protected DefaultNodeBuilder(V setter)
Constructor.- Parameters:
setter
- the setter- Since:
- 1.0
-
-
Method Detail
-
setAssertion
public X setAssertion(GenericObjectAssert<T,?> assertion)
Description copied from interface:NodeBuilder
Sets the assertion.- Specified by:
setAssertion
in interfaceNodeBuilder<T,U extends Node<T>,V extends Node<T>>
- Parameters:
assertion
- the assertion- Returns:
- the node builder
-
doAssertion
protected abstract void doAssertion(GenericObjectAssert<T,?> assertion)
Define what should happen whensetAssertion(GenericObjectAssert)
is called.- Parameters:
assertion
- the assertion- Since:
- 1.0
-
-