Package com.swiftmq.tools.collection
Class ArrayListTool
java.lang.Object
com.swiftmq.tools.collection.ArrayListTool
A tool class for ArrayLists
- Version:
- 1.0
- Author:
- Andreas Mueller, IIT GmbH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
setFirstFreeOrExpand
(ArrayList list, Object object) set the object in the list on the first position with value equals null or - if no free index exists - expand.
-
Constructor Details
-
ArrayListTool
public ArrayListTool()
-
-
Method Details
-
setFirstFreeOrExpand
set the object in the list on the first position with value equals null or - if no free index exists - expand.- Parameters:
list
- the listobject
- the object to insert- Returns:
- the index for this object
-