summaryrefslogtreecommitdiff
path: root/sources/shared/MyVector.java
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2009-02-18 17:33:22 +0000
committerPaul Buetow <paul@buetow.org>2009-02-18 17:33:22 +0000
commit4722100cba287b164957c658c2e035783e20c963 (patch)
tree35733fd3e50aeeb493e38ceaea83521a4710f0ac /sources/shared/MyVector.java
parent61f7175cc3e51c0afaf63e380d03824a77464ba8 (diff)
moved sources
Diffstat (limited to 'sources/shared/MyVector.java')
-rw-r--r--sources/shared/MyVector.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/sources/shared/MyVector.java b/sources/shared/MyVector.java
new file mode 100644
index 0000000..9a76625
--- /dev/null
+++ b/sources/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());
+ }
+}