This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* After some benchmarking with JMH, I found that the best way to implement the part that manage maps and collections was | |
* to use an Iterator and its built-in function that take a lambda (forEachRemaning). | |
* List of others solutions I tried: | |
* - Iterator (using for...in loop) | |
* - Iterator + while loop | |
* - Spliterator + Stream | |
* - Spliterator + lambda | |
*/ | |
public class DeepToString { |