Class ArrayListTool

java.lang.Object
com.swiftmq.tools.collection.ArrayListTool

public class ArrayListTool extends Object
A tool class for ArrayLists
Version:
1.0
Author:
Andreas Mueller, IIT GmbH
  • Constructor Details

    • ArrayListTool

      public ArrayListTool()
  • Method Details

    • setFirstFreeOrExpand

      public static 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.
      Parameters:
      list - the list
      object - the object to insert
      Returns:
      the index for this object