Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to cast a java.util.HashMap$Node object?

Tags:

java

I use a library method which returns a java.util.HashMap$Node object.
I have tried to cast it to Map, HashMap, or Iterator but they have all failed.
To what data type I can cast an object of type java.util.HashMap$Node?

like image 629
Ahmad Siavashi Avatar asked Jan 03 '23 17:01

Ahmad Siavashi


1 Answers

HashMap.Node implements Map.Entry, so you can cast to that.

like image 131
kewne Avatar answered Jan 21 '23 16:01

kewne