Class CollectionUtils

java.lang.Object
org.firebirdsql.jaybird.util.CollectionUtils

public final class CollectionUtils extends Object
Helper class for collections
Since:
6
Author:
Mark Rotteveel
  • Method Details

    • growToSize

      public static void growToSize(List<?> list, int size)
      Grows the size of list to size by padding it with null to the requested size.

      If the size of the list is already size or larger, it will not be modified

      Parameters:
      list - list to grow
      size - desired size
      Throws:
      NullPointerException - if list is null, or does not accept null as a value
      UnsupportedOperationException - if list is unmodifiable or fixed size and its current size is less than size