Top Description Methods
org.opentest4j.reporting.events.api

public Interface Appendable<T extends Element<T>>

Known Direct Subinterfaces
org.opentest4j.reporting.events.api.DocumentWriter
Known Direct Implementers
org.opentest4j.reporting.events.api.Element
Type Parameters
<T>
parent element type
Imports
java.util.function.Consumer

Interface for objects that support appending child elements.

Method Summary

Modifier and TypeMethod and Description
public default <
child element type
C extends ChildElement<T, ? super C>
>
Appendable<T>

Returns:

self reference to allow method chaining
append
(Factory<C>
child element factory
creator
)

Append the child element created by the supplied factory.

public <
child element type
C extends ChildElement<T, ? super C>
>
Appendable<T>

Returns:

self reference to allow method chaining
append
(Factory<C>
child element factory
creator
,
Consumer<? super C>
child element configurer
configurer
)

Append the child element created by the supplied factory configured by the supplied consumer.

Method Detail

appendback to summary
public default <C extends ChildElement<T, ? super C>> Appendable<T> append(Factory<C> creator)

Append the child element created by the supplied factory.

Parameters
<C>
child element type
creator:Factory<C>

child element factory

Returns:Appendable<T>

self reference to allow method chaining

appendback to summary
public <C extends ChildElement<T, ? super C>> Appendable<T> append(Factory<C> creator, Consumer<? super C> configurer)

Append the child element created by the supplied factory configured by the supplied consumer.

Parameters
<C>
child element type
creator:Factory<C>

child element factory

configurer:Consumer<? super C>

child element configurer

Returns:Appendable<T>

self reference to allow method chaining