Back to project page Interkassa_android.
The source code is released under:
Apache License
If you think the Android project Interkassa_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 com.interkassa.constants; // w w w . j ava2 s . co m import java.util.HashMap; public class Currency { public enum Money {Dollar, Euro, Hryvnia, Ruble, BRuble, Gold /* :O :O :O */, Test}; private static HashMap <Money, Integer> dictionary; public static int getMoneyKey(Money money) { fillDictionary(); return dictionary.get(money); } private static void fillDictionary () { if (dictionary == null) { dictionary = new HashMap <Money, Integer>(); dictionary.put(Money.Dollar, 840); dictionary.put(Money.Euro, 978); dictionary.put(Money.Hryvnia, 980); dictionary.put(Money.Ruble, 643); dictionary.put(Money.BRuble, 974); dictionary.put(Money.Gold, 959); dictionary.put(Money.Test, 963); } } }