Package me.datafox.dfxengine.values
Class DelegatedValueMap.Builder
java.lang.Object
me.datafox.dfxengine.values.DelegatedValueMap.Builder
- Enclosing class:
DelegatedValueMap
A builder for
ValueMap.-
Method Summary
Modifier and TypeMethodDescriptionbuild()immutable(boolean immutable) logger(org.slf4j.Logger logger) map(BiFunction<Space, org.slf4j.Logger, HandleMap<Value>> map) modifiers(Collection<? extends Modifier> modifiers) values(Collection<? extends Value> values)
-
Method Details
-
map
- Parameters:
map-BiFunctionto initialize the backingHandleMap- Returns:
- this builder
-
logger
- Parameters:
logger-Loggerfor this map- Returns:
- this builder
-
immutable
- Parameters:
immutable-trueif the map should contain immutableValues- Returns:
- this builder
- Throws:
UnsupportedOperationException- if this builder already containsValuesthat do not have the specified mutability
-
value
- Parameters:
value-Valueto be associated with theValueMap- Returns:
- this builder
- Throws:
UnsupportedOperationException- if this builder already containsValuesor has its mutability explicitly set, and the mutability does not match the specified Value's mutability
-
values
- Parameters:
values-Valuesto be associated with theValueMap- Returns:
- this builder
- Throws:
UnsupportedOperationException- if this builder already containsValuesor has its mutability explicitly set, and the mutability does not match the specified Value's mutability
-
clearValues
- Returns:
- this builder
-
modifier
-
modifiers
-
clearModifiers
- Returns:
- this builder
-
build
- Returns:
ValueMapinitialized by this builder
-