Klasse Data
java.lang.Object
com.currencycalc.currencycalculatorjavafx.model.Data
Represents the exchange rates data structure retrieved from the FreeCurrencyAPI.
Each field corresponds to a specific currency's exchange rate relative to a base currency (typically USD). This class is annotated with Gson annotations for JSON serialization and deserialization.
Example JSON structure:
{ "AUD": 1.615, "EUR": 0.841, ... }
Each currency is represented as a Double
value.
- Version:
- 1.0.0
- Autor:
- Tim
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprivate Double
private Double
private Double
private Double
private Double
private Double
private Double
private Double
private Double
private Double
private Double
private Double
private Double
private Double
private Double
private Double
private Double
private Double
private Double
private Double
private Double
private Double
private Double
private Double
private Double
private Double
private Double
private Double
private Double
private Double
private Double
private Double
private Double
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungget_try()
Gets the exchange rate for the Turkish Lira (TRY).getAud()
getBgn()
getBrl()
Gets the exchange rate for the Brazilian Real (BRL).getCad()
Gets the exchange rate for the Canadian Dollar (CAD).getChf()
Gets the exchange rate for the Swiss Franc (CHF).getCny()
Gets the exchange rate for the Chinese Yuan (CNY).getCzk()
Gets the exchange rate for the Czech Koruna (CZK).getDkk()
Gets the exchange rate for the Danish Krone (DKK).getEur()
Gets the exchange rate for the Euro (EUR).getGbp()
Gets the exchange rate for the British Pound Sterling (GBP).getHkd()
Gets the exchange rate for the Hong Kong Dollar (HKD).getHrk()
Gets the exchange rate for the Croatian Kuna (HRK).getHuf()
Gets the exchange rate for the Hungarian Forint (HUF).getIdr()
Gets the exchange rate for the Indonesian Rupiah (IDR).getIls()
Gets the exchange rate for the Israeli New Shekel (ILS).getInr()
Gets the exchange rate for the Indian Rupee (INR).getIsk()
Gets the exchange rate for the Icelandic Krona (ISK).getJpy()
Gets the exchange rate for the Japanese Yen (JPY).getKrw()
Gets the exchange rate for the South Korean Won (KRW).getMxn()
Gets the exchange rate for the Mexican Peso (MXN).getMyr()
Gets the exchange rate for the Malaysian Ringgit (MYR).getNok()
Gets the exchange rate for the Norwegian Krone (NOK).getNzd()
Gets the exchange rate for the New Zealand Dollar (NZD).getPhp()
Gets the exchange rate for the Philippine Peso (PHP).getPln()
Gets the exchange rate for the Polish Zloty (PLN).getRon()
Gets the exchange rate for the Romanian Leu (RON).getRub()
Gets the exchange rate for the Russian Ruble (RUB).getSek()
Gets the exchange rate for the Swedish Krona (SEK).getSgd()
Gets the exchange rate for the Singapore Dollar (SGD).getThb()
Gets the exchange rate for the Thai Baht (THB).getUsd()
Gets the exchange rate for the US Dollar (USD).getZar()
void
Sets the exchange rate for the Turkish Lira (TRY).void
void
void
Sets the exchange rate for the Brazilian Real (BRL).void
Sets the exchange rate for the Canadian Dollar (CAD).void
Sets the exchange rate for the Swiss Franc (CHF).void
Sets the exchange rate for the Chinese Yuan (CNY).void
Sets the exchange rate for the Czech Koruna (CZK).void
Sets the exchange rate for the Danish Krone (DKK).void
Sets the exchange rate for the Euro (EUR).void
Sets the exchange rate for the British Pound Sterling (GBP).void
Sets the exchange rate for the Hong Kong Dollar (HKD).void
Sets the exchange rate for the Croatian Kuna (HRK).void
Sets the exchange rate for the Hungarian Forint (HUF).void
Sets the exchange rate for the Indonesian Rupiah (IDR).void
Sets the exchange rate for the Israeli New Shekel (ILS).void
Sets the exchange rate for the Indian Rupee (INR).void
Sets the exchange rate for the Icelandic Krona (ISK).void
Sets the exchange rate for the Japanese Yen (JPY).void
Sets the exchange rate for the South Korean Won (KRW).void
Sets the exchange rate for the Mexican Peso (MXN).void
Sets the exchange rate for the Malaysian Ringgit (MYR).void
Sets the exchange rate for the Norwegian Krone (NOK).void
Sets the exchange rate for the New Zealand Dollar (NZD).void
Sets the exchange rate for the Philippine Peso (PHP).void
Sets the exchange rate for the Polish Zloty (PLN).void
Sets the exchange rate for the Romanian Leu (RON).void
Sets the exchange rate for the Russian Ruble (RUB).void
Sets the exchange rate for the Swedish Krona (SEK).void
Sets the exchange rate for the Singapore Dollar (SGD).void
Sets the exchange rate for the Thai Baht (THB).void
Sets the exchange rate for the US Dollar (USD).void
-
Felddetails
-
aud
-
bgn
-
brl
-
cad
-
chf
-
cny
-
czk
-
dkk
-
eur
-
gbp
-
hkd
-
hrk
-
huf
-
idr
-
ils
-
inr
-
isk
-
jpy
-
krw
-
mxn
-
myr
-
nok
-
nzd
-
php
-
pln
-
ron
-
rub
-
sek
-
sgd
-
thb
-
_try
-
usd
-
zar
-
-
Konstruktordetails
-
Data
public Data()
-
-
Methodendetails
-
getAud
- Gibt zurück:
- The exchange rate for Australian Dollar (AUD).
-
setAud
- Parameter:
aud
- The exchange rate for Australian Dollar (AUD).
-
getBgn
- Gibt zurück:
- The exchange rate for Bulgarian Lev (BGN).
-
setBgn
- Parameter:
bgn
- The exchange rate for Bulgarian Lev (BGN).
-
getZar
- Gibt zurück:
- The exchange rate for South African Rand (ZAR).
-
setZar
- Parameter:
zar
- The exchange rate for South African Rand (ZAR).
-
getBrl
Gets the exchange rate for the Brazilian Real (BRL).- Gibt zurück:
- the exchange rate for BRL.
-
setBrl
Sets the exchange rate for the Brazilian Real (BRL).- Parameter:
brl
- the exchange rate to set for BRL.
-
getCad
Gets the exchange rate for the Canadian Dollar (CAD).- Gibt zurück:
- the exchange rate for CAD.
-
setCad
Sets the exchange rate for the Canadian Dollar (CAD).- Parameter:
cad
- the exchange rate to set for CAD.
-
getChf
Gets the exchange rate for the Swiss Franc (CHF).- Gibt zurück:
- the exchange rate for CHF.
-
setChf
Sets the exchange rate for the Swiss Franc (CHF).- Parameter:
chf
- the exchange rate to set for CHF.
-
getCny
Gets the exchange rate for the Chinese Yuan (CNY).- Gibt zurück:
- the exchange rate for CNY.
-
setCny
Sets the exchange rate for the Chinese Yuan (CNY).- Parameter:
cny
- the exchange rate to set for CNY.
-
getUsd
Gets the exchange rate for the US Dollar (USD).- Gibt zurück:
- the exchange rate for USD.
-
setUsd
Sets the exchange rate for the US Dollar (USD).- Parameter:
usd
- the exchange rate to set for USD.
-
get_try
Gets the exchange rate for the Turkish Lira (TRY).- Gibt zurück:
- the exchange rate for TRY.
-
set_try
Sets the exchange rate for the Turkish Lira (TRY).- Parameter:
_try
- the exchange rate to set for TRY.
-
getThb
Gets the exchange rate for the Thai Baht (THB).- Gibt zurück:
- the exchange rate for THB.
-
setThb
Sets the exchange rate for the Thai Baht (THB).- Parameter:
thb
- the exchange rate to set for THB.
-
getSgd
Gets the exchange rate for the Singapore Dollar (SGD).- Gibt zurück:
- the exchange rate for SGD.
-
setSgd
Sets the exchange rate for the Singapore Dollar (SGD).- Parameter:
sgd
- the exchange rate to set for SGD.
-
getSek
Gets the exchange rate for the Swedish Krona (SEK).- Gibt zurück:
- the exchange rate for SEK.
-
setSek
Sets the exchange rate for the Swedish Krona (SEK).- Parameter:
sek
- the exchange rate to set for SEK.
-
getRub
Gets the exchange rate for the Russian Ruble (RUB).- Gibt zurück:
- the exchange rate for RUB.
-
setRub
Sets the exchange rate for the Russian Ruble (RUB).- Parameter:
rub
- the exchange rate to set for RUB.
-
getRon
Gets the exchange rate for the Romanian Leu (RON).- Gibt zurück:
- the exchange rate for RON.
-
setRon
Sets the exchange rate for the Romanian Leu (RON).- Parameter:
ron
- the exchange rate to set for RON.
-
getPln
Gets the exchange rate for the Polish Zloty (PLN).- Gibt zurück:
- the exchange rate for PLN.
-
setPln
Sets the exchange rate for the Polish Zloty (PLN).- Parameter:
pln
- the exchange rate to set for PLN.
-
getPhp
Gets the exchange rate for the Philippine Peso (PHP).- Gibt zurück:
- the exchange rate for PHP.
-
setPhp
Sets the exchange rate for the Philippine Peso (PHP).- Parameter:
php
- the exchange rate to set for PHP.
-
getNzd
Gets the exchange rate for the New Zealand Dollar (NZD).- Gibt zurück:
- the exchange rate for NZD.
-
setNzd
Sets the exchange rate for the New Zealand Dollar (NZD).- Parameter:
nzd
- the exchange rate to set for NZD.
-
getNok
Gets the exchange rate for the Norwegian Krone (NOK).- Gibt zurück:
- the exchange rate for NOK.
-
setNok
Sets the exchange rate for the Norwegian Krone (NOK).- Parameter:
nok
- the exchange rate to set for NOK.
-
getMyr
Gets the exchange rate for the Malaysian Ringgit (MYR).- Gibt zurück:
- the exchange rate for MYR.
-
setMyr
Sets the exchange rate for the Malaysian Ringgit (MYR).- Parameter:
myr
- the exchange rate to set for MYR.
-
getMxn
Gets the exchange rate for the Mexican Peso (MXN).- Gibt zurück:
- the exchange rate for MXN.
-
setMxn
Sets the exchange rate for the Mexican Peso (MXN).- Parameter:
mxn
- the exchange rate to set for MXN.
-
getKrw
Gets the exchange rate for the South Korean Won (KRW).- Gibt zurück:
- the exchange rate for KRW.
-
setKrw
Sets the exchange rate for the South Korean Won (KRW).- Parameter:
krw
- the exchange rate to set for KRW.
-
getJpy
Gets the exchange rate for the Japanese Yen (JPY).- Gibt zurück:
- the exchange rate for JPY.
-
setJpy
Sets the exchange rate for the Japanese Yen (JPY).- Parameter:
jpy
- the exchange rate to set for JPY.
-
getIsk
Gets the exchange rate for the Icelandic Krona (ISK).- Gibt zurück:
- the exchange rate for ISK.
-
setIsk
Sets the exchange rate for the Icelandic Krona (ISK).- Parameter:
isk
- the exchange rate to set for ISK.
-
getInr
Gets the exchange rate for the Indian Rupee (INR).- Gibt zurück:
- the exchange rate for INR.
-
setInr
Sets the exchange rate for the Indian Rupee (INR).- Parameter:
inr
- the exchange rate to set for INR.
-
getIls
Gets the exchange rate for the Israeli New Shekel (ILS).- Gibt zurück:
- the exchange rate for ILS.
-
setIls
Sets the exchange rate for the Israeli New Shekel (ILS).- Parameter:
ils
- the exchange rate to set for ILS.
-
getIdr
Gets the exchange rate for the Indonesian Rupiah (IDR).- Gibt zurück:
- the exchange rate for IDR.
-
setIdr
Sets the exchange rate for the Indonesian Rupiah (IDR).- Parameter:
idr
- the exchange rate to set for IDR.
-
getHuf
Gets the exchange rate for the Hungarian Forint (HUF).- Gibt zurück:
- the exchange rate for HUF.
-
setHuf
Sets the exchange rate for the Hungarian Forint (HUF).- Parameter:
huf
- the exchange rate to set for HUF.
-
getHrk
Gets the exchange rate for the Croatian Kuna (HRK).- Gibt zurück:
- the exchange rate for HRK.
-
setHrk
Sets the exchange rate for the Croatian Kuna (HRK).- Parameter:
hrk
- the exchange rate to set for HRK.
-
getHkd
Gets the exchange rate for the Hong Kong Dollar (HKD).- Gibt zurück:
- the exchange rate for HKD.
-
setHkd
Sets the exchange rate for the Hong Kong Dollar (HKD).- Parameter:
hkd
- the exchange rate to set for HKD.
-
getGbp
Gets the exchange rate for the British Pound Sterling (GBP).- Gibt zurück:
- the exchange rate for GBP.
-
setGbp
Sets the exchange rate for the British Pound Sterling (GBP).- Parameter:
gbp
- the exchange rate to set for GBP.
-
getEur
Gets the exchange rate for the Euro (EUR).- Gibt zurück:
- the exchange rate for EUR.
-
setEur
Sets the exchange rate for the Euro (EUR).- Parameter:
eur
- the exchange rate to set for EUR.
-
getDkk
Gets the exchange rate for the Danish Krone (DKK).- Gibt zurück:
- the exchange rate for DKK.
-
setDkk
Sets the exchange rate for the Danish Krone (DKK).- Parameter:
dkk
- the exchange rate to set for DKK.
-
getCzk
Gets the exchange rate for the Czech Koruna (CZK).- Gibt zurück:
- the exchange rate for CZK.
-
setCzk
Sets the exchange rate for the Czech Koruna (CZK).- Parameter:
czk
- the exchange rate to set for CZK.
-