Android Open Source - RICurrencyConversion-Android Currency Conversion Input






From Project

Back to project page RICurrencyConversion-Android.

License

The source code is released under:

MIT License

If you think the Android project RICurrencyConversion-Android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package de.rocketinternet.currencyconversion;
//ww  w  .  j a v  a2  s.  c  o m
/**
 * Container class to bundle input parameters to a conversion
 */
public class CurrencyConversionInput {

    private Double value;
    private String currencyCode;
    private String targetCurrencyCode;

    /**
     * Convenience constructor to initialize the conversion input container
     * @param value Input value to be converted
     * @param currencyCode Origin currency code from which the value is converted
     * @param targetCurrencyCode Target currency code to which the value is converted
     */
    public CurrencyConversionInput(Double value, String currencyCode, String targetCurrencyCode) {
        this.value = value;
        this.currencyCode = currencyCode;
        this.targetCurrencyCode = targetCurrencyCode;
    }

    /**
     * @return Conversion input value to be converted
     */
    public Double getValue() {
        return value;
    }

    /**
     * @return Origin currency code from which value is converted
     */
    public String getCurrencyCode() {
        return currencyCode;
    }

    /**
     * @return Target currency code to which value is converted
     */
    public String getTargetCurrencyCode() {
        return targetCurrencyCode;
    }
}




Java Source Code List

de.rocketinternet.currencyconversion.ConversionResult.java
de.rocketinternet.currencyconversion.CurrencyConversionInput.java
de.rocketinternet.currencyconversion.CurrencyConversionTask.java
de.rocketinternet.currencyconversion.MyActivity.java