@Test public void entrySet() { Set<Map.Entry<? extends PropertyKey, String>> expected = PropertyKey.defaultKeys().stream() .map(key -> Maps.immutableEntry(key, key.getDefaultValue())).collect(toSet()); assertThat(mProperties.entrySet(), is(expected)); mProperties.put(mKeyWithValue, "value", Source.RUNTIME); expected.add(Maps.immutableEntry(mKeyWithValue, "value")); assertThat(mProperties.entrySet(), is(expected)); }
public Set<Map.Entry<PropertyKey, String>> entrySet() { return keySet().stream().map(key -> Maps.immutableEntry(key, get(key))).collect(toSet()); }
AlluxioProperties { public Set<Map.Entry<PropertyKey, String>> entrySet() { return keySet().stream().map(key -> Maps.immutableEntry(key, get(key))).collect(toSet()); } }
AlluxioProperties { public Set<Map.Entry<PropertyKey, String>> entrySet() { return keySet().stream().map(key -> Maps.immutableEntry(key, get(key))).collect(toSet()); } AlluxioProperties();  AlluxioProperties(AlluxioProperties alluxioProperties); }
AlluxioProperties { public Set<Map.Entry<PropertyKey, String>> entrySet() { return keySet().stream().map(key -> Maps.immutableEntry(key, get(key))).collect(toSet()); } AlluxioProperties();  AlluxioProperties(AlluxioProperties alluxioProperties); @Nullable String get(PropertyKey key); void clear(); void put(PropertyKey key, String value, Source source); void set(PropertyKey key, String value); void merge(Map<?, ?> properties, Source source); void remove(PropertyKey key); boolean isSet(PropertyKey key); boolean isSetByUser(PropertyKey key); Set<Map.Entry<PropertyKey, String>> entrySet(); Set<PropertyKey> keySet(); Set<PropertyKey> userKeySet(); void forEach(BiConsumer<? super PropertyKey, ? super String> action); AlluxioProperties copy(); @VisibleForTesting void setSource(PropertyKey key, Source source); Source getSource(PropertyKey key); String hash(); }
AlluxioProperties { public Set<Map.Entry<PropertyKey, String>> entrySet() { return keySet().stream().map(key -> Maps.immutableEntry(key, get(key))).collect(toSet()); } AlluxioProperties();  AlluxioProperties(AlluxioProperties alluxioProperties); @Nullable String get(PropertyKey key); void clear(); void put(PropertyKey key, String value, Source source); void set(PropertyKey key, String value); void merge(Map<?, ?> properties, Source source); void remove(PropertyKey key); boolean isSet(PropertyKey key); boolean isSetByUser(PropertyKey key); Set<Map.Entry<PropertyKey, String>> entrySet(); Set<PropertyKey> keySet(); Set<PropertyKey> userKeySet(); void forEach(BiConsumer<? super PropertyKey, ? super String> action); AlluxioProperties copy(); @VisibleForTesting void setSource(PropertyKey key, Source source); Source getSource(PropertyKey key); String hash();  }