Interface InheritanceAwareMap.Builder<C,V>
- Type Parameters:
C- the class typeV- the value type
- All Superinterfaces:
AbstractBuilder<InheritanceAwareMap<C,V>>
- Enclosing interface:
InheritanceAwareMap<C,V>
public static interface InheritanceAwareMap.Builder<C,V>
extends AbstractBuilder<InheritanceAwareMap<C,V>>
A builder for inheritance-aware maps.
- Since:
- 4.17.0
-
Method Summary
Modifier and TypeMethodDescriptionPut another value in this map.putAll(InheritanceAwareMap<? extends C, ? extends V> map) Put values from an existing inheritance-aware map into this map.Remove a value in this map.strict(boolean strict) Set strict mode for this builder.Methods inherited from interface AbstractBuilder
build
-
Method Details
-
strict
Set strict mode for this builder.If this builder has values from when it was not in strict mode, all previous values will be re-validated for any hierarchy ambiguities.
- Parameters:
strict- whether to enable strict mode.- Returns:
- this builder
- Since:
- 4.17.0
-
put
-
remove
Remove a value in this map.- Parameters:
clazz- the class type- Returns:
- this builder
- Since:
- 4.17.0
-
putAll
Put values from an existing inheritance-aware map into this map.- Parameters:
map- the existing map- Returns:
- this builder
- Since:
- 4.17.0
-