MapBuilder (cayenne-doc: Cayenne Documentation 5.0-M2 API)
Description: declaration: package: org.apache.cayenne.di, interface: MapBuilder

# Interface MapBuilder<T>

Type Parameters:
  `T` - A type of the map values.

public interface MapBuilder<T>
A binding builder for map configurations. Creates a parameterized map of type <String, T>.

Since:
  3.1

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `in(Scope scope)`
  `MapBuilder<T>`
  `put(String key, Class<? extends T> interfaceType)`
  `MapBuilder<T>`
  `put(String key, T value)`
  `MapBuilder<T>`
  `putAll(Map<String,T> map)`
  `void`
  `withoutScope()`

- ## Method Details

  - ### put

    MapBuilder<T> put(String key, Class<? extends T> interfaceType) throws DIRuntimeException
    Throws:
      `DIRuntimeException`

  - ### put

    MapBuilder<T> put(String key, T value) throws DIRuntimeException
    Throws:
      `DIRuntimeException`

  - ### putAll

    MapBuilder<T> putAll(Map<String,T> map) throws DIRuntimeException
    Throws:
      `DIRuntimeException`

  - ### in

    void in(Scope scope)

  - ### withoutScope

    void withoutScope()
    Since:
      4.1