Class GenericExts
java.lang.Object
org.sblim.cimclient.GenericExts
Class GenericExts is responsible for generic initialization
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <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 arrayListstatic <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
-
Constructor Details
-
GenericExts
public GenericExts()
-
-
Method Details
-
initClearArrayList
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- Type Parameters:
T
- : Type Parameter- Parameters:
pAL
- : ArrayList to be initialized- Returns:
- ArrayList : initialized ArrayList
-
initArrayList
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- Type Parameters:
T
- : Type Parameter- Parameters:
pAL
- : ArrayList to be initialized- Returns:
- ArrayList : initialized ArrayList
-
cloneVector
-