org.sblim.cimclient
Class GenericExts
public
class
GenericExts
extends Object
Class GenericExts is responsible for generic initialization
Method Summary |
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> Vector<
T> cloneVector(Vector<
T> oldVec)
cloneVector : Generic deep copy of the vector. If original vector is null
then return value will also be null.
Parameters:
: Type of vector
oldVec
: The original vector.
Returns: Vector : Deep copy of original vector.
public 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
Parameters:
: Type Parameter
pAL
: ArrayList to be initialized
Returns: ArrayList : initialized ArrayList
public 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
Parameters:
: Type Parameter
pAL
: ArrayList to be initialized
Returns: ArrayList : initialized ArrayList
Copyright © 2005, 2010 IBM Corporation. All Rights Reserved.