Skip to content

Commit

Permalink
Add util for printing all altcoins for adding to FAQ page
Browse files Browse the repository at this point in the history
  • Loading branch information
ManfredKarrer committed Feb 12, 2017
1 parent 6281ecc commit 246b15b
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion core/src/main/java/io/bitsquare/locale/CurrencyUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,19 @@ public static List<CryptoCurrency> createAllSortedCryptoCurrenciesList() {
result.add(new CryptoCurrency("YBC", "YbCoin"));
result.add(new CryptoCurrency("ZEC", "Zcash"));
result.add(new CryptoCurrency("XZC", "Zcoin"));

result.sort(TradeCurrency::compareTo);

// Util for printing all altcoins for adding to FAQ page
StringBuilder sb = new StringBuilder();
result.stream().forEach(e -> sb.append("<li>\"")
.append(e.getCode())
.append("\", \"")
.append(e.getName())
.append("\"</li>")
.append("\n"));
//log.info(sb.toString());

return result;
}

Expand Down

0 comments on commit 246b15b

Please sign in to comment.