public static final class StoredEffect.Builder extends Object
effect descriptions.| Constructor and Description |
|---|
Builder(StoredEffect storedEffect)
Creates a new builder with the module key and parameters taken
from the given effect description.
|
Builder(String moduleKey)
Creates a new builder with the given effect provider module key
and no parameters.
|
| Modifier and Type | Method and Description |
|---|---|
StoredEffect |
build()
Creates and returns a new
StoredEffect instance with the
module key and parameters from this builder. |
StoredEffect.Builder |
setModuleKey(String moduleKey)
Updates the effect provider module key.
|
StoredEffect.Builder |
setParameter(String key,
Object value)
Updates a provider-specific parameter.
|
public Builder(@NotNull
String moduleKey)
moduleKey - the module keypublic Builder(@NotNull
StoredEffect storedEffect)
storedEffect - the source effect description@NotNull public StoredEffect.Builder setModuleKey(@NotNull String moduleKey)
moduleKey - the module key@NotNull public StoredEffect.Builder setParameter(@NotNull String key, @Nullable Object value)
key - parameter keyvalue - parameter value; passing null deletes the parameter@NotNull public StoredEffect build()
StoredEffect instance with the
module key and parameters from this builder.Copyright © 2021 ALM Works. All Rights Reserved.