Interface MapReader<G,​M,​K,​V>


  • public interface MapReader<G,​M,​K,​V>
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      G add​(G m, K key, V val)
      Adds a key and value to the map, returning a new map; new map must be used for any further invocations
      M complete​(G m)
      Completes building of a map
      G init()
      Initializes a new (gestational) map
      G init​(int size)
      Initializes a new (gestational) map of specified size
    • Method Detail

      • init

        G init()
        Initializes a new (gestational) map
        Returns:
        a new map
      • init

        G init​(int size)
        Initializes a new (gestational) map of specified size
        Parameters:
        size - initial size of the new map
        Returns:
        a new map
      • add

        G add​(G m,
              K key,
              V val)
        Adds a key and value to the map, returning a new map; new map must be used for any further invocations
        Parameters:
        m - a (gestational) map
        key - a key
        val - a value
        Returns:
        a new gestational map
      • complete

        M complete​(G m)
        Completes building of a map
        Parameters:
        m - a map
        Returns:
        the completed map