MCPcopy
hub / github.com/bisq-network/bisq / parse

Method parse

core/src/main/java/bisq/core/monetary/Volume.java:38–44  ·  view source on GitHub ↗
(String input, String currencyCode)

Source from the content-addressed store, hash-verified

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) {

Callers 9

testFormatSameVolumeMethod · 0.95
setVolumeToModelMethod · 0.95
setVolumeToModelMethod · 0.95
getBsqInUsdMethod · 0.95
getTradeVolumeMethod · 0.95
getAdjustedFiatVolumeMethod · 0.95
getAdjustedAmountMethod · 0.95

Calls 3

convertCharsForNumberMethod · 0.95
isFiatCurrencyMethod · 0.95
parseAltcoinMethod · 0.95

Tested by 2

testFormatSameVolumeMethod · 0.76