@Test public void isSet() { assertTrue(mProperties.isSet(mKeyWithValue)); assertFalse(mProperties.isSet(mKeyWithoutValue)); mProperties.remove(mKeyWithValue); mProperties.put(mKeyWithoutValue, "value", Source.RUNTIME); assertTrue(mProperties.isSet(mKeyWithValue)); assertTrue(mProperties.isSet(mKeyWithoutValue)); }
public boolean isSet(PropertyKey key) { if (isSetByUser(key)) { return true; } return PropertyKey.fromString(key.toString()).getDefaultValue() != null; }
AlluxioProperties { public boolean isSet(PropertyKey key) { if (isSetByUser(key)) { return true; } return PropertyKey.fromString(key.toString()).getDefaultValue() != null; } }
AlluxioProperties { public boolean isSet(PropertyKey key) { if (isSetByUser(key)) { return true; } return PropertyKey.fromString(key.toString()).getDefaultValue() != null; } AlluxioProperties();  AlluxioProperties(AlluxioProperties alluxioProperties); }
AlluxioProperties { public boolean isSet(PropertyKey key) { if (isSetByUser(key)) { return true; } return PropertyKey.fromString(key.toString()).getDefaultValue() != null; } 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 boolean isSet(PropertyKey key) { if (isSetByUser(key)) { return true; } return PropertyKey.fromString(key.toString()).getDefaultValue() != null; } 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();  }