@Test public void keySet() { Set<PropertyKey> expected = new HashSet<>(PropertyKey.defaultKeys()); assertThat(mProperties.keySet(), is(expected)); PropertyKey newKey = new PropertyKey.Builder("keySetNew").build(); mProperties.put(newKey, "value", Source.RUNTIME); expected.add(newKey); assertThat(mProperties.keySet(), is(expected)); }
public Set<PropertyKey> keySet() { Set<PropertyKey> keySet = new HashSet<>(PropertyKey.defaultKeys()); keySet.addAll(mUserProps.keySet()); return Collections.unmodifiableSet(keySet); }
AlluxioProperties { public Set<PropertyKey> keySet() { Set<PropertyKey> keySet = new HashSet<>(PropertyKey.defaultKeys()); keySet.addAll(mUserProps.keySet()); return Collections.unmodifiableSet(keySet); } }
AlluxioProperties { public Set<PropertyKey> keySet() { Set<PropertyKey> keySet = new HashSet<>(PropertyKey.defaultKeys()); keySet.addAll(mUserProps.keySet()); return Collections.unmodifiableSet(keySet); } AlluxioProperties();  AlluxioProperties(AlluxioProperties alluxioProperties); }
AlluxioProperties { public Set<PropertyKey> keySet() { Set<PropertyKey> keySet = new HashSet<>(PropertyKey.defaultKeys()); keySet.addAll(mUserProps.keySet()); return Collections.unmodifiableSet(keySet); } 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<PropertyKey> keySet() { Set<PropertyKey> keySet = new HashSet<>(PropertyKey.defaultKeys()); keySet.addAll(mUserProps.keySet()); return Collections.unmodifiableSet(keySet); } 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();  }