/** * Returns a collection view of the mappings contained in this map. Each element in the returned * collection is a <tt>Map.Entry</tt>. The collection is backed by the map, so changes to the * map are reflected in the collection, and vice-versa. The collection supports element removal, * which removes the corresponding mapping from the map, via the <tt>Iterator.remove</tt>, * <tt>Collection.remove</tt>, <tt>removeAll</tt>, <tt>retainAll</tt>, and * <tt>clear</tt> operations. It does not support the <tt>add</tt> or <tt>addAll</tt> * operations. * * @return a collection view of the mappings contained in this map. * @see Map.Entry */ public Set entrySet() { Set es = entrySet; return (es != null ? es : (entrySet = new EntrySet())); }
/** * Returns a collection view of the mappings contained in this map. Each element in the returned * collection is a <tt>Map.Entry</tt>. The collection is backed by the map, so changes to the * map are reflected in the collection, and vice-versa. The collection supports element removal, * which removes the corresponding mapping from the map, via the <tt>Iterator.remove</tt>, * <tt>Collection.remove</tt>, <tt>removeAll</tt>, <tt>retainAll</tt>, and <tt>clear</tt> * operations. It does not support the <tt>add</tt> or <tt>addAll</tt> operations. * * @return a collection view of the mappings contained in this map. * @see Map.Entry */ public Set<Entry<V>> entrySet() { Set<Entry<V>> es = entrySet; return (es != null ? es : (entrySet = new EntrySet())); }
/** * Returns a collection view of the mappings contained in this map. Each element in the returned * collection is a <tt>Map.Entry</tt>. The collection is backed by the map, so changes to the * map are reflected in the collection, and vice-versa. The collection supports element removal, * which removes the corresponding mapping from the map, via the <tt>Iterator.remove</tt>, * <tt>Collection.remove</tt>, <tt>removeAll</tt>, <tt>retainAll</tt>, and <tt>clear</tt> * operations. It does not support the <tt>add</tt> or <tt>addAll</tt> operations. * * @return a collection view of the mappings contained in this map. * @see java.util.Map.Entry */ public Set<Entry<V>> entrySet() { Set<Entry<V>> es = entrySet; return (es != null ? es : (entrySet = new EntrySet())); }