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 Details

    • putConstant

      <V> DynamicKeyContainer.Builder putConstant(Key<V> key, V value)
      Puts a constant value associated with the given key.
      Type Parameters:
      V - the type of the value
      Parameters:
      key - the key
      value - the value
      Returns:
      this builder
    • putSupplied

      <V> DynamicKeyContainer.Builder putSupplied(Key<V> key, Supplier<V> value)
      Puts a supplied value associated with the given key.
      Type Parameters:
      V - the type of the value
      Parameters:
      key - the key
      value - the supplier
      Returns:
      this builder