diff options
| author | Paul Buetow <paul@buetow.org> | 2009-02-07 11:29:36 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2009-02-07 11:29:36 +0000 |
| commit | 0031991fad54c376b742b1a425531345638cbf57 (patch) | |
| tree | 3b9092a0f725e45a81dc4d23cb0dbb602bebab7b /shared/MyVector.java | |
initial import into svn
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()); + } +} |
