public final class HookBuilder
extends java.lang.Object
Hook instances.| Constructor and Description |
|---|
HookBuilder() |
| Modifier and Type | Method and Description |
|---|---|
Hook |
build()
Constructs a
Hook using the values set on this builder. |
HookBuilder |
setDescription(java.util.Optional<java.lang.String> description)
Sets the description of the hook.
|
HookBuilder |
setFunction(HookFunction function)
Sets the function to be executed.
|
HookBuilder |
setTestClass(java.lang.Class<?> testClass)
Sets the class that the hook was defined in.
|
HookBuilder |
setType(HookType type)
Sets the type of the hook.
|
public HookBuilder setType(HookType type)
type - The type.HookBuilder.public HookBuilder setTestClass(java.lang.Class<?> testClass)
testClass - The class.HookBuilder.public HookBuilder setDescription(java.util.Optional<java.lang.String> description)
description - The description.HookBuilder.public HookBuilder setFunction(HookFunction function)
function - The function.HookBuilder.