@Test public void testDelete() { final UserSettingsImpl settings = new UserSettingsImpl( "foo" ); settings.put( "key", "value" ); assertEquals( "value", settings.get( "key", "default" ) ); settings.delete( "key" ); assertEquals( "default", settings.get( "key", "default" ) ); }
protected void delete( final String aName ) { this.properties.remove( aName ); }
UserSettingsImpl implements UserSettings { protected void delete( final String aName ) { this.properties.remove( aName ); } }
UserSettingsImpl implements UserSettings { protected void delete( final String aName ) { this.properties.remove( aName ); } UserSettingsImpl( final String aName );  UserSettingsImpl( final String aName, final Properties aProperties ); protected  UserSettingsImpl( final UserSettings aSettings ); }
UserSettingsImpl implements UserSettings { protected void delete( final String aName ) { this.properties.remove( aName ); } UserSettingsImpl( final String aName );  UserSettingsImpl( final String aName, final Properties aProperties ); protected  UserSettingsImpl( final UserSettings aSettings ); @Override String get( final String aName, final String aDefaultValue ); @Override boolean getBoolean( final String aName, final boolean aDefaultValue ); @Override int getInt( final String aName, final int aDefaultValue ); @Override long getLong( final String aName, final long aDefaultValue ); @Override String getName(); Properties getProperties(); @Override Iterator<Entry<String, Object>> iterator(); @Override void put( final String aName, final String aValue ); @Override void putAll( final Map<?, ?> aSettings ); @Override void putBoolean( final String aName, final boolean aValue ); @Override void putInt( final String aName, final int aValue ); @Override void putLong( final String aName, final long aValue ); }
UserSettingsImpl implements UserSettings { protected void delete( final String aName ) { this.properties.remove( aName ); } UserSettingsImpl( final String aName );  UserSettingsImpl( final String aName, final Properties aProperties ); protected  UserSettingsImpl( final UserSettings aSettings ); @Override String get( final String aName, final String aDefaultValue ); @Override boolean getBoolean( final String aName, final boolean aDefaultValue ); @Override int getInt( final String aName, final int aDefaultValue ); @Override long getLong( final String aName, final long aDefaultValue ); @Override String getName(); Properties getProperties(); @Override Iterator<Entry<String, Object>> iterator(); @Override void put( final String aName, final String aValue ); @Override void putAll( final Map<?, ?> aSettings ); @Override void putBoolean( final String aName, final boolean aValue ); @Override void putInt( final String aName, final int aValue ); @Override void putLong( final String aName, final long aValue );  }