Class StoredEffect.Builder
Object
Builder
- Enclosing class:
- StoredEffect
Builder class for
effect descriptions.-
Constructor Summary
ConstructorsConstructorDescriptionBuilder(StoredEffect storedEffect) Creates a new builder with the module key and parameters taken from the given effect description.Creates a new builder with the given effect provider module key and no parameters. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates and returns a newStoredEffectinstance with the module key and parameters from this builder.setModuleKey(String moduleKey) Updates the effect provider module key.setParameter(String key, Object value) Updates a provider-specific parameter.
-
Constructor Details
-
Builder
Creates a new builder with the given effect provider module key and no parameters.- Parameters:
moduleKey- the module key
-
Builder
Creates a new builder with the module key and parameters taken from the given effect description.- Parameters:
storedEffect- the source effect description
-
-
Method Details
-
setModuleKey
Updates the effect provider module key.- Parameters:
moduleKey- the module key- Returns:
- this builder
-
setParameter
Updates a provider-specific parameter.- Parameters:
key- parameter keyvalue- parameter value; passingnulldeletes the parameter- Returns:
- this builder
-
build
Creates and returns a newStoredEffectinstance with the module key and parameters from this builder.- Returns:
- a new effect description
-