@Test public void hash() { String hash0 = mProperties.hash(); mProperties.set(mKeyWithValue, "new value"); String hash1 = mProperties.hash(); Assert.assertNotEquals(hash0, hash1); mProperties.remove(mKeyWithValue); String hash2 = mProperties.hash(); Assert.assertEquals(hash0, hash2); mProperties.set(mKeyWithValue, "new value"); String hash3 = mProperties.hash(); Assert.assertEquals(hash1, hash3); mProperties.set(mKeyWithValue, "updated new value"); String hash4 = mProperties.hash(); Assert.assertNotEquals(hash0, hash4); Assert.assertNotEquals(hash1, hash4); Assert.assertNotEquals(hash2, hash4); Assert.assertNotEquals(hash3, hash4); mProperties.set(mKeyWithoutValue, "value"); String hash5 = mProperties.hash(); Assert.assertNotEquals(hash0, hash5); Assert.assertNotEquals(hash1, hash5); Assert.assertNotEquals(hash2, hash5); Assert.assertNotEquals(hash3, hash5); Assert.assertNotEquals(hash4, hash5); }
public String hash() { return mHash.get(); }
AlluxioProperties { public String hash() { return mHash.get(); } }
AlluxioProperties { public String hash() { return mHash.get(); } AlluxioProperties();  AlluxioProperties(AlluxioProperties alluxioProperties); }
AlluxioProperties { public String hash() { return mHash.get(); } 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 String hash() { return mHash.get(); } 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();  }