public static <T> T get(final T[] array, final int index, final T defaultValue) {
        return isArrayIndexValid(array, index) ? array[index] : defaultValue;
    }
Gets the nTh element of an array or a default value if the index is out of bounds.

@param <T> The type of array elements.
@param array The array to index.
@param index The index
@param defaultValue The return value of the given index is out of bounds.
@return the nTh element of an array or a default value if the index is out of bounds.
@since 3.11
commons/src/main/java/com/navercorp/pinpoint/common/util/ArrayUtils.java