summaryrefslogtreecommitdiff
path: root/sources/utils/VSTools.java
diff options
context:
space:
mode:
Diffstat (limited to 'sources/utils/VSTools.java')
-rw-r--r--sources/utils/VSTools.java12
1 files changed, 9 insertions, 3 deletions
diff --git a/sources/utils/VSTools.java b/sources/utils/VSTools.java
index 1a8338e..7f2f00e 100644
--- a/sources/utils/VSTools.java
+++ b/sources/utils/VSTools.java
@@ -7,9 +7,13 @@ package utils;
import java.util.Vector;
/**
- * The Class VSTools.
+ * The Class VSTools. This class contains only static methods. Those methods
+ * are for general usage and don't fit into other classes.
+ *
+ * @author Paul C. Buetow
*/
public final class VSTools {
+ /** The serial version uid */
private static final long serialVersionUID = 1L;
/**
@@ -38,7 +42,8 @@ public final class VSTools {
public static long getStringTime(String string) {
try {
/* Ignore the "ms" postfix */
- Long longValue = Long.valueOf(string.substring(0, string.length()-2));
+ Long longValue = Long.valueOf(
+ string.substring(0, string.length()-2));
return longValue.longValue();
} catch (NumberFormatException e) {
}
@@ -47,7 +52,7 @@ public final class VSTools {
}
/**
- * Gets the integer vector represented by a string comma separated.
+ * Gets the integer vector represented by a comma separated string.
*
* @param string the string
*
@@ -80,6 +85,7 @@ public final class VSTools {
vec.add(Integer.parseInt(substring));
string = string.substring(index+1);
}
+
/* Remove leading whitespaces */
while (string.charAt(0) == ' ')
string = string.substring(1);