Fix compilation issues HashMap.Entry isn't public.

Need to use Map.Entry instead of HashMap.Entry in order for this to
compile.