Java Vector Create toVector(Object[] array)

Here you can find the source of toVector(Object[] array)

Description

to Vector

License

Common Public License

Declaration

static Vector toVector(Object[] array) 

Method Source Code

//package com.java2s;
/*/*from  w ww  . ja va  2  s  . c  o  m*/
 // $Id: //open/mondrian/src/main/mondrian/olap/fun/FunUtil.java#18 $
 // (C) Copyright 2002 Kana Software, Inc.
 // This software is subject to the terms of the Common Public License
 // Agreement, available at the following URL:
 // http://www.opensource.org/licenses/cpl.html.
 // (C) Copyright 2002 Kana Software, Inc. and others.
 // All Rights Reserved.
 // You must accept the terms of that agreement to use this software.
 //
 // jhyde, 3 March, 2002
 */

import java.util.*;

public class Main {
    static Vector toVector(Object[] array) {
        Vector vector = new Vector();
        return addArray(vector, array);
    }

    static Vector addArray(Vector vector, Object[] array) {
        for (int i = 0; i < array.length; i++) {
            vector.addElement(array[i]);
        }
        return vector;
    }
}

Related

  1. makeVector(String[] O)
  2. parseLinesFromLast(byte[] bytearray, int lineCount, Vector lastNlines)
  3. tokenVector(String s, String delimiters)
  4. ToVector(byte[] in)
  5. toVector(Enumeration pEnumeration_)
  6. toVector(T[] array)