MCPcopy Create free account
hub / github.com/PCGen/pcgen / getToken

Method getToken

code/src/java/plugin/exporttokens/deprecated/GoldToken.java:45–51  ·  view source on GitHub ↗
(String tokenSource, PlayerCharacter pc, ExportHandler eh)

Source from the content-addressed store, hash-verified

43 }
44
45 @Override
46 public String getToken(String tokenSource, PlayerCharacter pc, ExportHandler eh)
47 {
48 DecimalFormatSymbols decimalFormatSymbols = new DecimalFormatSymbols(Locale.US);
49 NumberFormat decimalFormat = new DecimalFormat("#,##0.##", decimalFormatSymbols);
50 return decimalFormat.format(getGoldToken(pc));
51 }
52
53 /**
54 * Retrieve the amount of money that the character has.

Callers

nothing calls this directly

Calls 2

getGoldTokenMethod · 0.95
formatMethod · 0.80

Tested by

no test coverage detected