@Test public void testPutAlias() { Object o = new Object(); sut.put(KEY, o); sut.putAlias("alias", KEY); Property<Object> result1 = sut.get(KEY); Property<Object> result2 = sut.get("alias"); assertEquals(o, result2.getValue()); result1.setValue(8L); assertEquals(8L, result2.getValue()); }
@Override public void putAlias(final String aliasKey, final String originalKey) { Property<T> property = get(originalKey); if (property != null) { put(aliasKey, property); } }
PropertyHashMap extends HashMap<String, Property<T>> implements PropertyMap<T> { @Override public void putAlias(final String aliasKey, final String originalKey) { Property<T> property = get(originalKey); if (property != null) { put(aliasKey, property); } } }
PropertyHashMap extends HashMap<String, Property<T>> implements PropertyMap<T> { @Override public void putAlias(final String aliasKey, final String originalKey) { Property<T> property = get(originalKey); if (property != null) { put(aliasKey, property); } }  }
PropertyHashMap extends HashMap<String, Property<T>> implements PropertyMap<T> { @Override public void putAlias(final String aliasKey, final String originalKey) { Property<T> property = get(originalKey); if (property != null) { put(aliasKey, property); } }  @Override void put(final String key, final T value); @Override void put(final String key, final Class type, final Serializable identity); @Override void putAlias(final String aliasKey, final String originalKey); }
PropertyHashMap extends HashMap<String, Property<T>> implements PropertyMap<T> { @Override public void putAlias(final String aliasKey, final String originalKey) { Property<T> property = get(originalKey); if (property != null) { put(aliasKey, property); } }  @Override void put(final String key, final T value); @Override void put(final String key, final Class type, final Serializable identity); @Override void putAlias(final String aliasKey, final String originalKey);  }