Package de.mhus.lib.core.currency
Class CCurrency
- java.lang.Object
-
- de.mhus.lib.core.currency.CCurrency
-
- All Implemented Interfaces:
Externalizable,Serializable
public class CCurrency extends Object implements Externalizable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCCurrency.CRYPTO_CURRENCYstatic classCCurrency.FIAT_CURRENCY
-
Field Summary
Fields Modifier and Type Field Description static StringSCHEME_FIAT_PREFIXstatic CCurrencyUNKNOWN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object in)static CCurrencygetCurrenctyForName(String name)StringgetName()StringgetScheme()static StringgetSchemeForCurrency(String currency)booleanisFiat()booleanisUnknown()voidreadExternal(ObjectInput in)CCurrency.CRYPTO_CURRENCYtoCryptoCurrency()CCurrency.FIAT_CURRENCYtoFiatCurrency()StringtoString()voidwriteExternal(ObjectOutput out)
-
-
-
Field Detail
-
UNKNOWN
public static final CCurrency UNKNOWN
-
SCHEME_FIAT_PREFIX
public static final String SCHEME_FIAT_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
toCryptoCurrency
public CCurrency.CRYPTO_CURRENCY toCryptoCurrency()
-
toFiatCurrency
public CCurrency.FIAT_CURRENCY toFiatCurrency()
-
getScheme
public String getScheme()
-
getName
public String getName()
-
isUnknown
public boolean isUnknown()
-
isFiat
public boolean isFiat()
-
-