Clone Vector, Returns an enumeration of the vector list that is not changed by parallel changes to the vector. - Java java.util

Java examples for java.util:List Operation

Description

Clone Vector, Returns an enumeration of the vector list that is not changed by parallel changes to the vector.

Demo Code


//package com.java2s;

import java.util.Enumeration;

import java.util.Vector;

public class Main {
    /**//from www.ja v  a  2  s  . c o m
     * Returns an enumeration of the vector list that is not changed by parallel changes to the vector.
     * 
     * @param
     * @return
     */
    public static Enumeration getPersistentEntryEnumeration(Vector vector) {
        return ((Vector) vector.clone()).elements();
    }
}

Related Tutorials