MCPcopy Create free account
hub / github.com/Card-Forge/forge / nounWithNumeral

Method nounWithNumeral

forge-core/src/main/java/forge/util/Lang.java:151–154  ·  view source on GitHub ↗
(final int cnt, final String noun)

Source from the content-addressed store, hash-verified

149 }
150
151 public static String nounWithNumeral(final int cnt, final String noun) {
152 final String countedForm = cnt == 1 ? noun : getPlural(noun);
153 return getNumeral(cnt) + " " + countedForm;
154 }
155
156 public static String nounWithNumeral(final String cnt, final String noun) {
157 if (StringUtils.isNumeric(cnt)) {

Callers 14

toStringMethod · 0.95
addTriggerAbilityMethod · 0.95
addSpellAbilityMethod · 0.95
getTextMethod · 0.95
tokenizeStringMethod · 0.95
resolveMethod · 0.95
getStackDescriptionMethod · 0.95
getStackDescriptionMethod · 0.95
resolveMethod · 0.95
getStackDescriptionMethod · 0.95

Calls 2

getPluralMethod · 0.95
getNumeralMethod · 0.95

Tested by

no test coverage detected