(String input, String currencyCode)
| 36 | } |
| 37 | |
| 38 | public static Volume parse(String input, String currencyCode) { |
| 39 | String cleaned = ParsingUtils.convertCharsForNumber(input); |
| 40 | if (CurrencyUtil.isFiatCurrency(currencyCode)) |
| 41 | return new Volume(Fiat.parseFiat(currencyCode, cleaned)); |
| 42 | else |
| 43 | return new Volume(Altcoin.parseAltcoin(currencyCode, cleaned)); |
| 44 | } |
| 45 | |
| 46 | @Override |
| 47 | public int compareTo(@NotNull Volume other) { |