Skip to content

Commit

Permalink
Eliminados archivos .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
picodotdev committed Oct 11, 2015
1 parent 14bb5fa commit 4e68d9c
Show file tree
Hide file tree
Showing 13 changed files with 26 additions and 53 deletions.
12 changes: 10 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
*.class

# Package Files #
*.war
*.ear

bin/
build/
.gradle/
.settings/
.classpath
.project

node_modules/
.resourceCache/
7 changes: 0 additions & 7 deletions BackboneReact/.gitignore

This file was deleted.

3 changes: 0 additions & 3 deletions ConfiguracionJava/.gitignore

This file was deleted.

5 changes: 0 additions & 5 deletions HolaMundoJMS/.gitignore

This file was deleted.

5 changes: 0 additions & 5 deletions HolaMundoThrift/.gitignore

This file was deleted.

6 changes: 6 additions & 0 deletions JavaMoney/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
/bin/
/build/
/.gradle/
/.resourceCache/
/.settings/
/.classpath
/.project
15 changes: 9 additions & 6 deletions JavaMoney/src/main/java/io/github/picodotdev/javamoney/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -154,24 +154,27 @@ public static void main(String[] args) {
System.out.println("reduction");
System.out.printf("Máximo %s, mínimo %s, suma %s\n", max.get(), min.get(), sum.get());

// exchange rates
// exchange rates
ExchangeRateProvider exchangeRateProviderECB = MonetaryConversions.getExchangeRateProvider("ECB");
ExchangeRateProvider exchangeRateProviderOER = MonetaryConversions.getExchangeRateProvider("OER");
ExchangeRate exchangeRateECB = exchangeRateProviderECB.getExchangeRate("USD", "EUR");
ExchangeRate exchangeRateOER = exchangeRateProviderOER.getExchangeRate("USD", "EUR");

System.out.println();
System.out.println("exchange rates");
System.out.printf("Ratio de conversión de USD a EUR (ECB): %f\n", exchangeRateECB.getFactor().doubleValue());
System.out.printf("Ratio de conversión de USD a EUR (OER): %f\n", exchangeRateOER.getFactor().doubleValue());
System.out.printf("Ratio de conversión de USD a EUR (ECB, European Central Bank): %f\n", exchangeRateECB.getFactor().doubleValue());
System.out.printf("Ratio de conversión de USD a EUR (OER, Open Exchange Rates): %f\n", exchangeRateOER.getFactor().doubleValue());

// conversion
CurrencyConversion toEuro = MonetaryConversions.getConversion("EUR");
MonetaryAmount tenDollarToEuro = tenDollar.with(toEuro);
CurrencyConversion toEuroECB = MonetaryConversions.getConversion("EUR", "ECB");
CurrencyConversion toEuroOER = MonetaryConversions.getConversion("EUR", "OER");
MonetaryAmount tenDollarToEuroECB = tenDollar.with(toEuroECB);
MonetaryAmount tenDollarToEuroOER = tenDollar.with(toEuroOER);

System.out.println();
System.out.println("conversion");
System.out.printf("10 USD son %s EUR\n", tenDollarToEuro);
System.out.printf("10 USD son %s EUR (ECB)\n", tenDollarToEuroECB);
System.out.printf("10 USD son %s EUR (OER)\n", tenDollarToEuroOER);

// formating
MonetaryAmountFormat spainFormat = MonetaryFormats.getAmountFormat(new Locale("es", "ES"));
Expand Down
2 changes: 1 addition & 1 deletion JavaMoney/src/main/resources/javamoney.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
{0}load.OpenExchangeRatesRateProvider.resource=/java-money/defaults/OER/open-exchange-rates.json
{0}load.OpenExchangeRatesRateProvider.urls=https://openexchangerates.org/api/latest.json?app_id=9275a617a9d248129a32d996914c9344

#Currency Conversion
# Currency Conversion
{0}conversion.default-chain=IDENT,ECB,IMF,ECB-HIST,ECB-HIST90,OER
1 change: 0 additions & 1 deletion MultiprojectGradle/.gitignore

This file was deleted.

6 changes: 0 additions & 6 deletions PatronNoOperation/.gitignore

This file was deleted.

5 changes: 0 additions & 5 deletions ServiceLoader/.gitignore

This file was deleted.

6 changes: 0 additions & 6 deletions SpringSession/.gitignore

This file was deleted.

6 changes: 0 additions & 6 deletions TomcatEmbedded/.gitignore

This file was deleted.

0 comments on commit 4e68d9c

Please sign in to comment.