Java examples for java.util:List Operation
Clone Vector, Returns an enumeration of the vector list that is not changed by parallel changes to the vector.
//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(); } }