m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/pl/edu
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/pl/edu')
-rw-r--r--src/main/java/pl/edu/mimuw/cloudatlas/model/ValueDuration.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/pl/edu/mimuw/cloudatlas/model/ValueDuration.java b/src/main/java/pl/edu/mimuw/cloudatlas/model/ValueDuration.java
index bf9d0e0..444ce78 100644
--- a/src/main/java/pl/edu/mimuw/cloudatlas/model/ValueDuration.java
+++ b/src/main/java/pl/edu/mimuw/cloudatlas/model/ValueDuration.java
@@ -152,6 +152,12 @@ public class ValueDuration extends ValueSimple<Long> {
return result;
}
+ /**
+ * @param matcher A regex matcher
+ * @param group The name of a group matched by <code>matcher</code> that
+ * should have captured a number.
+ * @return The parsed number.
+ */
private static long parseLongGroup(Matcher matcher, String group) {
return Long.parseLong(matcher.group(group));
}