Reputation: 4949
I'm looking for the source code of the implementation
class Entry<K,V> implements Map.Entry<K,V>
of http://docs.oracle.com/javase/7/docs/api/java/util/Map.Entry.html The class defining the entries of HashMap.
Where is it ?
I know this a naive Q. But there it is.
Upvotes: 2
Views: 868
Reputation: 14709
If you just want to look at sample source code, check this out.
In general, if you ever want to find source code online, it's as simple as:
Google: "java HashMap source"
Upvotes: 5
Reputation: 17422
If you have the JDK installed, look for this file:
$JAVA_HOME/src.zip
Then unzip it and you'll find it in java/util/Map.java, it is an inner class.
Upvotes: 6