Map.Entry
Interface Map.Entry<K,V>
- All Known Implementing Classes:
- AbstractMap.SimpleEntry, AbstractMap.SimpleImmutableEntry
public static interface Map.Entry<K,V>
A map entry (key-value pair). The Map.entrySet
method returns a collection-view of the map, whose elements are of this class. The only way to obtain a reference to a map entry is from the iterator of this collection-view. These Map.Entry
objects are valid only for the duration of the iteration; more formally, the behavior of a