@Test public void testGetColor() { final UserSettingsImpl settings = new UserSettingsImpl( "foo" ); settings.putColor( "key", Color.WHITE ); assertEquals( Color.WHITE, settings.getColor( "key", Color.BLACK ) ); }
protected Color getColor( final String aName, final Color aDefaultValue ) { String value = this.properties.getProperty( aName ); if ( value == null ) { return aDefaultValue; } return ColorUtils.parseColor( value ); }
UserSettingsImpl implements UserSettings { protected Color getColor( final String aName, final Color aDefaultValue ) { String value = this.properties.getProperty( aName ); if ( value == null ) { return aDefaultValue; } return ColorUtils.parseColor( value ); } }
UserSettingsImpl implements UserSettings { protected Color getColor( final String aName, final Color aDefaultValue ) { String value = this.properties.getProperty( aName ); if ( value == null ) { return aDefaultValue; } return ColorUtils.parseColor( value ); } UserSettingsImpl( final String aName );  UserSettingsImpl( final String aName, final Properties aProperties ); protected  UserSettingsImpl( final UserSettings aSettings ); }
UserSettingsImpl implements UserSettings { protected Color getColor( final String aName, final Color aDefaultValue ) { String value = this.properties.getProperty( aName ); if ( value == null ) { return aDefaultValue; } return ColorUtils.parseColor( value ); } 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 Color getColor( final String aName, final Color aDefaultValue ) { String value = this.properties.getProperty( aName ); if ( value == null ) { return aDefaultValue; } return ColorUtils.parseColor( value ); } 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 );  }