MCPcopy Index your code
hub / github.com/PCGen/pcgen / parseInt

Method parseInt

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

Parse a string with an option plus or minus followed by digits into an int. @param s a string that may or may not be a valid delta @return int @exception java.lang.NumberFormatException This exception is thrown if the string does not match the required format for a delta.

(String s)

Source from the content-addressed store, hash-verified

57 * required format for a delta.
58 */
59 public static int parseInt(String s)
60 {
61 if (s.charAt(0) == '+')
62 {
63 s = s.substring(1);
64 }
65
66 return Integer.parseInt(s);
67 }
68
69 /**
70 * toString

Callers 15

parseNonEmptyTokenMethod · 0.95
setMinValueFromStringMethod · 0.95
setMaxValueFromStringMethod · 0.95
getSRMethod · 0.95
replaceCostChoiceMethod · 0.95
getSpellInfoMethod · 0.95
testFieldChoiceMethod · 0.80
parseNonEmptyTokenMethod · 0.80

Calls

no outgoing calls

Tested by 15

testFieldChoiceMethod · 0.64
passesMethod · 0.64
passesMethod · 0.64
passesMethod · 0.64
passesMethod · 0.64
passesMethod · 0.64
passesMethod · 0.64
passesMethod · 0.64
passesMethod · 0.64
passesMethod · 0.64
passesMethod · 0.64
passesMethod · 0.64