MCPcopy Create free account
hub / github.com/atas76/openengine / parseTime

Method parseTime

src/main/java/org/ttn/parser/ParserUtil.java:119–125  ·  view source on GitHub ↗
(List<String> tokens)

Source from the content-addressed store, hash-verified

117 }
118
119 public static int parseTime(List<String> tokens) throws ParserException, NumberFormatException {
120 int minutes = Integer.parseInt(tokens.get(0));
121 expectToken(":", tokens.get(1));
122 int seconds = Integer.parseInt(tokens.get(2));
123
124 return minutes * 60 + seconds;
125 }
126
127 public static TacticalPosition parseTacticalPosition(List<String> tokens) {
128 if (TacticalPosition.isGoalkeeper(tokens.get(0))) {

Callers 4

testParseTimeMethod · 0.95
parseStatementMethod · 0.95

Calls 1

expectTokenMethod · 0.95

Tested by 3

testParseTimeMethod · 0.76