This adds a generator for maps, similar to the one for lists. Currently it only supports collecting to the default Collectors.toMap() implementation, but it would be simple to add support for generating others.
The mapEntry() code creates a singleton map and throws it away, but I'm not sure creating a new Map.Entry class just for internal use would be great.
This adds a generator for maps, similar to the one for lists. Currently it only supports collecting to the default Collectors.toMap() implementation, but it would be simple to add support for generating others.
The mapEntry() code creates a singleton map and throws it away, but I'm not sure creating a new Map.Entry class just for internal use would be great.