From df1dbe48b99a5c86345a58d6da5727cb39547727 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Thu, 29 May 2008 20:30:46 +0000 Subject: new package documented. --- sources/utils/VSTools.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'sources/utils/VSTools.java') 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); -- cgit v1.2.3