public class GenericExts extends Object
Constructor and Description |
---|
GenericExts() |
Modifier and Type | Method and Description |
---|---|
static <T> Vector<T> |
cloneVector(Vector<T> oldVec)
cloneVector : Generic deep copy of the vector.
|
static <T> ArrayList<T> |
initArrayList(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> ArrayList<T> |
initClearArrayList(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> ArrayList<T> initClearArrayList(ArrayList<T> pAL)
T
- : Type ParameterpAL
- : ArrayList to be initializedpublic static <T> ArrayList<T> initArrayList(ArrayList<T> pAL)
T
- : Type ParameterpAL
- : ArrayList to be initializedpublic static <T> Vector<T> cloneVector(Vector<T> oldVec)
T
- : Type of vectoroldVec
- : The original vector.Copyright © 2005, 2012 IBM Corporation. All Rights Reserved.