Interface Transcoder.MapBuilder<D>

Type Parameters:
D - the type of object used by the transcoder
Enclosing interface:
Transcoder<D>

public static interface Transcoder.MapBuilder<D>
Map builders are used to eventually build a map
They are considered mutable containers, but provide builder semantics.
  • Method Details

    • put

      Transcoder.MapBuilder<D> put(D key, D value)
      Puts an entry onto the map
      Parameters:
      key - the key
      value - the value
      Returns:
      this
    • put

      Transcoder.MapBuilder<D> put(String key, D value)
      Puts an entry onto the map
      Parameters:
      key - the string key
      value - the value
      Returns:
      this
    • build

      D build()
      Build the map with the current values
      Returns:
      the completed map of type Transcoder.MapBuilder