package com.amos.project4.views;
import java.util.Vector;


public class TreeNodeVector<E> extends Vector<E> {
	  /**
	 * 
	 */
	private static final long serialVersionUID = 3252885813422985439L;
	String name;

	  TreeNodeVector(String name) {
	    this.name = name;
	  }

	  TreeNodeVector(String name, E elements[]) {
	    this.name = name;
	    for (int i = 0, n = elements.length; i < n; i++) {
	      add(elements[i]);
	    }
	  }

	  public String toString() {
	    return "[" + name + "]";
	  }
}

/*
 * 
 * This file is part of the software project "Social Media and Datev".
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public
 * License along with this program. If not, see
 * <http://www.gnu.org/licenses/>.
 */

package com.amos.project4.views;
import java.util.Vector;


public class TreeNodeVector<E> extends Vector<E> {
	  /**
	 * 
	 */
	private static final long serialVersionUID = 3252885813422985439L;
	String name;

	  TreeNodeVector(String name) {
	    this.name = name;
	  }

	  TreeNodeVector(String name, E elements[]) {
	    this.name = name;
	    for (int i = 0, n = elements.length; i < n; i++) {
	      add(elements[i]);
	    }
	  }

	  public String toString() {
	    return "[" + name + "]";
	  }
}

Update TreeNodeVector.java