Class ArrayUtil


  • public class ArrayUtil
    extends java.lang.Object
    this class contains some static methods to deal with arrays.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> java.util.List<T> createDefaultValueList​(int capacity, T defaultValue)
      creates a list containing the defaultValue as each entry.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • createDefaultValueList

        public static final <T> java.util.List<T> createDefaultValueList​(int capacity,
                                                                         T defaultValue)
        creates a list containing the defaultValue as each entry.
        Type Parameters:
        T -
        Parameters:
        capacity -
        defaultValue -
        Returns: