Back to project page RICurrencyConversion-Android.
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.
package de.rocketinternet.currencyconversion; // w w w. j ava 2 s . c o m /** * Conversion result class to carry the outputs of a conversion operation */ public class ConversionResult { private Error error; private Double value; /** * Overridden constructor to restrict to convenience constructor */ private ConversionResult() { } /** * Convenience constructor taking a value and an optional error * @param value Output value from conversion * @param error Optional error occurred during conversion */ public ConversionResult(Double value, Error error) { this(); this.value = value; this.error = error; } public Error getError() { return error; } public Double getValue() { return value; } }