public static <T, IV> boolean allSatisfyWith(
            ArrayList<T> list,
            Predicate2<? super T, ? super IV> predicate,
            IV injectedValue)
    {
        int size = list.size();
        if (ArrayListIterate.isOptimizableArrayList(list, size))
        {
            T[] elements = ArrayListIterate.getInternalArray(list);
            for (int i = 0; i < size; i++)
            {
                if (!predicate.accept(elements[i], injectedValue))
                {
                    return false;
                }
            }
            return true;
        }
        return RandomAccessListIterate.allSatisfyWith(list, predicate, injectedValue);
    }
public static < T , IV > boolean allSatisfyWith ( ArrayList < T > list , Predicate2 < ? super T , ? super IV > predicate , IV injectedValue ) { int size = list . size ( ) ; if ( ArrayListIterate . isOptimizableArrayList ( list , size ) ) { T [ ] elements = ArrayListIterate . getInternalArray ( list ) ; for ( int i = 0 ; i < size ; i ++ ) { if ( ! predicate . accept ( elements [ i ] , injectedValue ) ) { return false ; } } return true ; } return RandomAccessListIterate . allSatisfyWith ( list , predicate , injectedValue ) ; }
@see Iterate#allSatisfyWith(Iterable, Predicate2, Object)