Fix compilation issues HashMap.Entry isn't public.

Need to use Map.Entry instead of HashMap.Entry in order for this to
compile.
Merge pull request #2 from kingargyle/fix-HashMap-issue

Fix compilation issues HashMap.Entry isn't public.