Java File Append appendToCollection(final Vector original, final File[] toAppend)

Here you can find the source of appendToCollection(final Vector original, final File[] toAppend)

Description

append To Collection

License

Open Source License

Declaration

synchronized static Vector<File> appendToCollection(final Vector<File> original, final File[] toAppend) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.io.File;
import java.util.Vector;

public class Main {
    synchronized static Vector<File> appendToCollection(final Vector<File> original, final File[] toAppend) {
        Vector<File> toReturn = new Vector(original);
        for (int i = 0; i < toAppend.length; i++) {
            File file = toAppend[i];
            toReturn.add(file);/*  w w w . j  av a 2  s .com*/
        }
        return toReturn;
    }
}

Related

  1. appendHexJavaScriptRepresentation(Appendable out, int codePoint)
  2. appendHexJavaScriptRepresentation(StringBuilder sb, char c)
  3. appendTo(String fileName, String str)
  4. appendTo(StringBuffer sb, CharSequence s)
  5. appendToArray(final File[] original, final File[] toAppend)
  6. appendToFileName(File file, String str)
  7. appendToken(StringBuilder path, String token, boolean skipEmpty, boolean skipSeparator)
  8. appendToOutput(InputStream input, OutputStream output)
  9. appendToOutputStream(OutputStream out, String value)