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

Method decode

code/src/java/pcgen/util/Delta.java:40–48  ·  view source on GitHub ↗

Construct a @see java.lang.Integer and strip a leading plus sign since Integer does not understand it. @param s @return Integer

(String s)

Source from the content-addressed store, hash-verified

38 * @return Integer
39 */
40 public static Integer decode(String s)
41 {
42 if ((!s.isEmpty()) && (s.charAt(0) == '+'))
43 {
44 s = s.substring(1);
45 }
46
47 return Integer.decode(s);
48 }
49
50 /**
51 * Parse a string with an option plus or minus followed by digits

Callers 13

getEquipmentFromNameMethod · 0.95
PartyForParserMethod · 0.95
CharacterFilterMethod · 0.95
getDamageMethod · 0.95
subParseMethod · 0.45
subParseMethod · 0.45
parseNonEmptyTokenMethod · 0.45
parseNonEmptyTokenMethod · 0.45
processMethod · 0.45
processMethod · 0.45
getGMGenOptionMethod · 0.45
getPCGenOptionMethod · 0.45

Calls 1

isEmptyMethod · 0.65

Tested by

no test coverage detected