diff options
| author | Paul Buetow <paul@buetow.org> | 2009-02-08 01:37:25 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2009-02-08 01:37:25 +0000 |
| commit | 69f0e6b0bf0dc0a6c6fe8ccf17c74960697ca10c (patch) | |
| tree | 4b99d266e90f2ac93e46b499b6e02c6dd4bcae18 /shared/MyVector.java | |
1.0 releasedv0.1
Diffstat (limited to 'shared/MyVector.java')
| -rw-r--r-- | shared/MyVector.java | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/shared/MyVector.java b/shared/MyVector.java new file mode 100644 index 0000000..9d9d596 --- /dev/null +++ b/shared/MyVector.java @@ -0,0 +1,23 @@ +package shared; + +import java.util.Enumeration; +import java.util.Vector; + +/** + * This class extends the standard Vector class and defined additional help methods. + * @author buetow + * + */ +public class MyVector extends Vector { + private static final long serialVersionUID = 1L; + + /** + * This method appends a vector at the end. + * @param vecAppend Specifies the vector to be appended. + */ + public void appendVector(Vector vecAppend) { + Enumeration enumAppend = vecAppend.elements(); + while (enumAppend.hasMoreElements()) + this.add(enumAppend.nextElement()); + } +} |
