This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
It looks like the definition of an inner class (since top-level classes can't be declared static) called "Entry" that implements the interface Map.Entry.
What are you unsure about? Map.Entry is defined in the JavaDocs , do you not understand what this interface is for? Or are you unfamiliar with inner classes?
The interface is Map.Entry. It is an interface defined in the Map class hence the slightly unusual form.
pras
Ranch Hand
Joined: Apr 04, 2007
Posts: 188
posted
0
hi paul,
sorry if i sound silly but i thought Map was a interface?
shazar kv
Greenhorn
Joined: Mar 16, 2007
Posts: 7
posted
0
Map is an Interface NOT a class defined in java.util package.Map.Entry is another Interface defined in the same package.
Map interface contains a method called entrySet() - Returns a set view of the mappings contained in this map..The return type of the method is Map.Entry.
The Map.entrySet method returns a collection-view of the map, whose elements are of this interface(Map.Entry)