Package com.cognitect.transit
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 Gadd(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 invocationsMcomplete(G m)Completes building of a mapGinit()Initializes a new (gestational) mapGinit(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) mapkey- a keyval- a value- Returns:
- a new gestational map
-
-