diff options
| author | Paul Buetow <paul@buetow.org> | 2008-05-29 20:30:46 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2008-05-29 20:30:46 +0000 |
| commit | df1dbe48b99a5c86345a58d6da5727cb39547727 (patch) | |
| tree | 6f3a83225f47592e94b1a1ba9953707f348ad21f /sources/utils/VSTools.java | |
| parent | a4d12944746dcb4f9d1140dfd52c7d58b930c17d (diff) | |
new package documented.
Diffstat (limited to 'sources/utils/VSTools.java')
| -rw-r--r-- | sources/utils/VSTools.java | 12 |
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); |
