Package owl.util

Class ArraysSupport


  • public final class ArraysSupport
    extends Object
    • Field Detail

      • MAX_ARRAY_LENGTH

        public static final int MAX_ARRAY_LENGTH
        The maximum length of array to allocate (unless necessary). Some VMs reserve some header words in an array. Attempts to allocate larger arrays may result in OutOfMemoryError: Requested array size exceeds VM limit
        See Also:
        Constant Field Values
    • Method Detail

      • newLength

        public static int newLength​(int oldLength,
                                    int minGrowth,
                                    int prefGrowth)