public Currency getCodeCurrency ( String code ) { if ( code . equals ( this . code ) ) return this ; Currency currency = getInstance ( code ) ; if ( currency . equals ( this ) ) return currency ; if ( ! attributes . codes . contains ( code ) ) throw new IllegalArgumentException ( "Code not listed for this currency" ) ; return new Currency ( code , attributes ) ; }
Gets the equivalent object with the passed code .