@Test public void testGetId() { Configuration config = Configuration.current(); ConfigurationSnapshot snapshot1 = new DefaultConfigurationSnapshot(config, Arrays.asList("confkey1", "confkey2", "confkey3", "foo")); ConfigurationSnapshot snapshot2 = new DefaultConfigurationSnapshot(config, Arrays.asList("confkey1", "confkey2", "confkey3", "foo")); assertThat(snapshot1).isNotEqualTo(snapshot2); assertThat(((DefaultConfigurationSnapshot) snapshot1).getId()) .isNotEqualTo(((DefaultConfigurationSnapshot) snapshot2).getId()); }
public UUID getId() { return id; }
DefaultConfigurationSnapshot implements ConfigurationSnapshot, Serializable { public UUID getId() { return id; } }
DefaultConfigurationSnapshot implements ConfigurationSnapshot, Serializable { public UUID getId() { return id; } DefaultConfigurationSnapshot(Configuration config, Iterable<String> keys);  DefaultConfigurationSnapshot(Configuration config); }
DefaultConfigurationSnapshot implements ConfigurationSnapshot, Serializable { public UUID getId() { return id; } DefaultConfigurationSnapshot(Configuration config, Iterable<String> keys);  DefaultConfigurationSnapshot(Configuration config); @Override ConfigurationSnapshot getSnapshot(Iterable<String> keys); @Override Set<String> getKeys(); @Override String get(String key); @Override String getOrDefault(String key, String defaultValue); @Override T getOrDefault(String key, Class<T> type, T defaultValue); @SuppressWarnings("unchecked") @Override T get(String key, Class<T> type); @Override T get(String key, TypeLiteral<T> type); @Override T getOrDefault(String key, TypeLiteral<T> type, T defaultValue); @Override Map<String, String> getProperties(); @Override ConfigurationContext getContext(); @Override long getTimestamp(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); UUID getId(); }
DefaultConfigurationSnapshot implements ConfigurationSnapshot, Serializable { public UUID getId() { return id; } DefaultConfigurationSnapshot(Configuration config, Iterable<String> keys);  DefaultConfigurationSnapshot(Configuration config); @Override ConfigurationSnapshot getSnapshot(Iterable<String> keys); @Override Set<String> getKeys(); @Override String get(String key); @Override String getOrDefault(String key, String defaultValue); @Override T getOrDefault(String key, Class<T> type, T defaultValue); @SuppressWarnings("unchecked") @Override T get(String key, Class<T> type); @Override T get(String key, TypeLiteral<T> type); @Override T getOrDefault(String key, TypeLiteral<T> type, T defaultValue); @Override Map<String, String> getProperties(); @Override ConfigurationContext getContext(); @Override long getTimestamp(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); UUID getId();  }