public static <T> MutableLongList collectLong(
            ArrayList<T> list,
            LongFunction<? super T> longFunction)
    {
        int size = list.size();
        if (ArrayListIterate.isOptimizableArrayList(list, size))
        {
            MutableLongList result = new LongArrayList(size);
            return ArrayListIterate.collectLongFromInternalArray(list, longFunction, size, result);
        }
        return RandomAccessListIterate.collectLong(list, longFunction);
    }
public static < T > MutableLongList collectLong ( ArrayList < T > list , LongFunction < ? super T > longFunction ) { int size = list . size ( ) ; if ( ArrayListIterate . isOptimizableArrayList ( list , size ) ) { MutableLongList result = new LongArrayList ( size ) ; return ArrayListIterate . collectLongFromInternalArray ( list , longFunction , size , result ) ; } return RandomAccessListIterate . collectLong ( list , longFunction ) ; }
@see Iterate#collectLong(Iterable, LongFunction)