Package com.xpdustry.distributor.api.key
Interface DynamicKeyContainer.Builder
- All Superinterfaces:
Buildable.Builder<DynamicKeyContainer,DynamicKeyContainer.Builder>
- Enclosing interface:
- DynamicKeyContainer
public static interface DynamicKeyContainer.Builder
extends Buildable.Builder<DynamicKeyContainer,DynamicKeyContainer.Builder>
A builder for
DynamicKeyContainer.-
Method Summary
Modifier and TypeMethodDescriptionputConstant(Key<V> key, V value) Puts a constant value associated with the givenkey.putSupplied(Key<V> key, Supplier<V> value) Puts a supplied value associated with the givenkey.Methods inherited from interface com.xpdustry.distributor.api.util.Buildable.Builder
build, modify
-
Method Details
-
putConstant
Puts a constant value associated with the givenkey.- Type Parameters:
V- the type of the value- Parameters:
key- the keyvalue- the value- Returns:
- this builder
-
putSupplied
Puts a supplied value associated with the givenkey.- Type Parameters:
V- the type of the value- Parameters:
key- the keyvalue- the supplier- Returns:
- this builder
-