Top Description Methods
de.undercouch.citeproc.csl.internal.behavior

public Interface Behavior

extends BiConsumer<Consumer<RenderContext>, RenderContext>
Known Direct Implementers
de.undercouch.citeproc.csl.internal.behavior.Display, de.undercouch.citeproc.csl.internal.behavior.Quotes, de.undercouch.citeproc.csl.internal.behavior.StripPeriods, de.undercouch.citeproc.csl.internal.behavior.TextCase, de.undercouch.citeproc.csl.internal.rendering.SNameInheritableAttributes, de.undercouch.citeproc.csl.internal.behavior.Affixes
Imports
de.undercouch.citeproc.csl.internal.RenderContext, java.util.function.BiConsumer, .Consumer

Wraps around a render function and augments its result
Author
Michel Kraemer

Method Summary

Modifier and TypeMethod and Description
public default Consumer<RenderContext>

Returns:

a new render function that can be called instead of the wrapped one
wrap
(Consumer<RenderContext>
the render function to wrap around
renderFunction
)

Convenience function to wrap this behavior and others around a render function.

Inherited from java.util.function.BiConsumer:
acceptandThen

Method Detail

wrapback to summary
public default Consumer<RenderContext> wrap(Consumer<RenderContext> renderFunction)

Convenience function to wrap this behavior and others around a render function.

Parameters
renderFunction:Consumer<RenderContext>

the render function to wrap around

Returns:Consumer<RenderContext>

a new render function that can be called instead of the wrapped one