withTools

open fun withTools(vararg tools: Tool): UnfoldingTool

Create a new UnfoldingTool with additional tools added.

This enables fluent building of tool groups:

val combined = UnfoldingTool.of("tools", "My tools", listOf(baseTool))
.withTools(searchTool, filterTool)
.withToolObject(HelperTools())

Return

A new UnfoldingTool with the combined tools

Parameters

tools

The tools to add