If a pymap contains itself we would get stackoverflow exceptions since the hashcode method recursively calls the hashcode method for all entrys in the set.
Instead we use an iterator so we can add additional elements from nested Maps. We then keep a HashSet with the System.identityHashCode() value so we can tell if we already visited a nested map.
If a pymap contains itself we would get stackoverflow exceptions since the hashcode method recursively calls the hashcode method for all entrys in the set.
Instead we use an iterator so we can add additional elements from nested Maps. We then keep a HashSet with the
System.identityHashCode()
value so we can tell if we already visited a nested map.