public static class Effectors.EffectorBuilder<T>
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
Effector<T> |
build()
returns the effector, with an implementation (required); @see
buildAbstract() |
Effector<T> |
buildAbstract()
returns an abstract effector, where the body will be defined later/elsewhere
(impl must not be set)
|
Effectors.EffectorBuilder<T> |
description(java.lang.String description) |
Effectors.EffectorBuilder<T> |
impl(EffectorBody<T> effectorBody) |
Effectors.EffectorBuilder<T> |
impl(EffectorTasks.EffectorTaskFactory<T> taskFactory) |
Effectors.EffectorBuilder<T> |
parameter(java.lang.Class<?> paramType,
java.lang.String paramName) |
Effectors.EffectorBuilder<T> |
parameter(java.lang.Class<?> paramType,
java.lang.String paramName,
java.lang.String paramDescription) |
<V> Effectors.EffectorBuilder<T> |
parameter(java.lang.Class<V> paramType,
java.lang.String paramName,
java.lang.String paramDescription,
V defaultValue) |
<V> Effectors.EffectorBuilder<T> |
parameter(ConfigKey<V> key) |
Effectors.EffectorBuilder<T> |
parameter(ParameterType<?> p) |
public Effectors.EffectorBuilder<T> description(java.lang.String description)
public Effectors.EffectorBuilder<T> parameter(java.lang.Class<?> paramType, java.lang.String paramName)
public Effectors.EffectorBuilder<T> parameter(java.lang.Class<?> paramType, java.lang.String paramName, java.lang.String paramDescription)
public <V> Effectors.EffectorBuilder<T> parameter(java.lang.Class<V> paramType, java.lang.String paramName, java.lang.String paramDescription, V defaultValue)
public <V> Effectors.EffectorBuilder<T> parameter(ConfigKey<V> key)
public Effectors.EffectorBuilder<T> parameter(ParameterType<?> p)
public Effectors.EffectorBuilder<T> impl(EffectorTasks.EffectorTaskFactory<T> taskFactory)
public Effectors.EffectorBuilder<T> impl(EffectorBody<T> effectorBody)
public Effector<T> build()
buildAbstract()