Interface Maps.IMapBuilder<K,​V>

  • Type Parameters:
    K - Key type.
    V - Value type.
    Enclosing class:
    Maps

    public static interface Maps.IMapBuilder<K,​V>
    Map builder.
    Since:
    8.2.0
    Version:
    $Revision: 21231 $ $Date: 2018-04-24 19:34:27 -0300 (Tue, 24 Apr 2018) $
    • Method Detail

      • put

        Maps.IMapBuilder<K,​V> put​(K key,
                                        V value)
        Puts the given entry in this builder.
        Parameters:
        key - the key.
        value - the value.
        Returns:
        this builder.
        Since:
        8.2.0
      • build

        Map<K,​V> build()
        Returns the built map in a modifiable form.
        Returns:
        the built map in a modifiable form.
        Since:
        8.2.0
      • buildImmutable

        Map<K,​V> buildImmutable()
        Returns the built map in an unmodifiable form.
        Returns:
        the built map in an unmodifiable form.
        Since:
        8.2.0