MCPcopy
hub / github.com/google/guava / asMapEntryIterator

Method asMapEntryIterator

guava/src/com/google/common/collect/Maps.java:949–957  ·  view source on GitHub ↗
(Set<K> set, Function<? super K, V> function)

Source from the content-addressed store, hash-verified

947 }
948
949 static <K extends @Nullable Object, V extends @Nullable Object>
950 Iterator<Entry<K, V>> asMapEntryIterator(Set<K> set, Function<? super K, V> function) {
951 return new TransformedIterator<K, Entry<K, V>>(set.iterator()) {
952 @Override
953 Entry<K, V> transform(@ParametricNullness K key) {
954 return immutableEntry(key, function.apply(key));
955 }
956 };
957 }
958
959 private static final class SortedAsMapView<K extends @Nullable Object, V extends @Nullable Object>
960 extends AsMapView<K, V> implements SortedMap<K, V> {

Callers 5

iteratorMethod · 0.95
iteratorMethod · 0.45
entryIteratorMethod · 0.45
iteratorMethod · 0.45
iteratorMethod · 0.45

Calls 1

iteratorMethod · 0.65

Tested by

no test coverage detected