summaryrefslogtreecommitdiff
path: root/sources/shared/MyVector.java
blob: 3c98d721ff96c4fc9e036eafcb904dc6886ffed6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* NetCalendar 2006, 2009 (c) Dipl.-Inform. (FH) Paul C. Buetow
 * http://netcalendar.buetow.org - netcalendar@dev.buetow.org
 */

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());
    }
}