public void setDefault ( Currency currency ) { if ( currencyList . containsKey ( currency . getName ( ) ) ) { Common . getInstance ( ) . getStorageHandler ( ) . getStorageEngine ( ) . setDefaultCurrency ( currency ) ; defaultCurrency = currency ; currency . setDefault ( true ) ; for ( Map . Entry < String , Currency > currencyEntry : currencyList . entrySet ( ) ) { if ( ! currencyEntry . getValue ( ) . equals ( currency ) ) { currency . setDefault ( false ) ; } } } }
Set a currency as the default one .