public static <T, R extends MutableDoubleCollection> R collectDouble(ArrayList<T> list, DoubleFunction<? super T> doubleFunction, R target)
    {
        int size = list.size();
        if (ArrayListIterate.isOptimizableArrayList(list, size))
        {
            return ArrayListIterate.collectDoubleFromInternalArray(list, doubleFunction, size, target);
        }
        return RandomAccessListIterate.collectDouble(list, doubleFunction, target);
    }
public static < T , R extends MutableDoubleCollection > R collectDouble ( ArrayList < T > list , DoubleFunction < ? super T > doubleFunction , R target ) { int size = list . size ( ) ; if ( ArrayListIterate . isOptimizableArrayList ( list , size ) ) { return ArrayListIterate . collectDoubleFromInternalArray ( list , doubleFunction , size , target ) ; } return RandomAccessListIterate . collectDouble ( list , doubleFunction , target ) ; }
@see Iterate#collectDouble(Iterable, DoubleFunction, MutableDoubleCollection)