public class GenericExts
extends java.lang.Object
| Constructor and Description |
|---|
GenericExts() |
| Modifier and Type | Method and Description |
|---|---|
static <T> java.util.Vector<T> |
cloneVector(java.util.Vector<T> oldVec)
cloneVector : Generic deep copy of the vector.
|
static <T> java.util.ArrayList<T> |
initArrayList(java.util.ArrayList<T> pAL)
initArrayList : If arrayList is null then it will return the new
arrayList of same type if it is not null then it will return the same
arrayList
|
static <T> java.util.ArrayList<T> |
initClearArrayList(java.util.ArrayList<T> pAL)
initArrayList : If arrayList is null then it will return the new
arrayList of same type if it is not null then it will clear the arrayList
|
public static <T> java.util.ArrayList<T> initClearArrayList(java.util.ArrayList<T> pAL)
T - : Type ParameterpAL - : ArrayList to be initializedpublic static <T> java.util.ArrayList<T> initArrayList(java.util.ArrayList<T> pAL)
T - : Type ParameterpAL - : ArrayList to be initializedpublic static <T> java.util.Vector<T> cloneVector(java.util.Vector<T> oldVec)
T - : Type of vectoroldVec - : The original vector.Copyright © 2005, 2013 IBM Corporation. All Rights Reserved.