Top Constructors Methods
org.eclipse.collections.impl.utility.internal

public final Class InternalArrayIterate

extends Object
Class Inheritance
Annotations
@SuppressWarnings:TypeMayBeWeakened
Imports
java.io.IOException, java.util.ArrayList, .Collection, .Comparator, .DoubleSummaryStatistics, .IntSummaryStatistics, .Iterator, .List, .LongSummaryStatistics, .NoSuchElementException, .Objects, .Optional, .RandomAccess, java.util.function.BiConsumer, .BinaryOperator, .Supplier, .UnaryOperator, java.util.stream.Collector, org.eclipse.collections.api.RichIterable, org.eclipse.collections.api.block.HashingStrategy, org.eclipse.collections.api.block.function.Function, .Function2, org.eclipse.collections.api.block.function.primitive.BooleanFunction, .ByteFunction, .CharFunction, .DoubleFunction, .FloatFunction, .IntFunction, .LongFunction, .ObjectIntToObjectFunction, .ShortFunction, org.eclipse.collections.api.block.predicate.Predicate, .Predicate2, org.eclipse.collections.api.block.predicate.primitive.ObjectIntPredicate, org.eclipse.collections.api.block.procedure.Procedure, org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure, org.eclipse.collections.api.collection.primitive.MutableBooleanCollection, .MutableByteCollection, .MutableCharCollection, .MutableDoubleCollection, .MutableFloatCollection, .MutableIntCollection, .MutableLongCollection, .MutableShortCollection, org.eclipse.collections.api.factory.Lists, .Sets, org.eclipse.collections.api.factory.primitive.ObjectDoubleMaps, .ObjectLongMaps, org.eclipse.collections.api.list.ListIterable, .MutableList, org.eclipse.collections.api.map.MutableMapIterable, org.eclipse.collections.api.map.primitive.MutableObjectDoubleMap, .MutableObjectLongMap, org.eclipse.collections.api.multimap.MutableMultimap, org.eclipse.collections.api.ordered.OrderedIterable, org.eclipse.collections.api.set.MutableSet, org.eclipse.collections.api.tuple.Twin, org.eclipse.collections.impl.block.procedure.CountProcedure, .FastListCollectIfProcedure, .FastListCollectProcedure, .FastListRejectProcedure, .FastListSelectProcedure, .MultimapPutProcedure, org.eclipse.collections.impl.list.mutable.FastList, org.eclipse.collections.impl.partition.list.PartitionFastList, org.eclipse.collections.impl.set.strategy.mutable.UnifiedSetWithHashingStrategy, org.eclipse.collections.impl.tuple.Tuples, org.eclipse.collections.impl.utility.ArrayIterate, .Iterate

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static <T> boolean
allSatisfy(T[] array, int size, Predicate<? super T> predicate)

public static <T, P> boolean
allSatisfyWith(T[] array, int size, Predicate2<? super T, ? super P> predicate, P parameter)

public static <T> boolean
anySatisfy(T[] array, int size, Predicate<? super T> predicate)

public static <T, P> boolean
anySatisfyWith(T[] array, int size, Predicate2<? super T, ? super P> predicate, P parameter)

public static <T> void
appendString(ListIterable<T> iterable, T[] array, int size, Appendable appendable, String start, String separator, String end)

public static <T> boolean
arrayEqualsList(T[] array, int size, List<?> list)

private static <T> void
batchCount(T[] array, int start, int end, CountProcedure<T> castProcedure)

Implemented to avoid megamorphic call on castProcedure.

private static <T> void
batchFastListCollect(T[] array, int start, int end, FastListCollectProcedure<T, ?> castProcedure)

Implemented to avoid megamorphic call on castProcedure.

private static <T> void
batchFastListCollectIf(T[] array, int start, int end, FastListCollectIfProcedure<T, ?> castProcedure)

Implemented to avoid megamorphic call on castProcedure.

private static <T> void
batchFastListSelect(T[] array, int start, int end, FastListSelectProcedure<T> castProcedure)

Implemented to avoid megamorphic call on castProcedure.

public static <T> void
batchForEach(Procedure<? super T> procedure, T[] array, int size, int sectionIndex, int sectionCount)

private static <T> void
batchGroupBy(T[] array, int start, int end, MultimapPutProcedure<?, T> castProcedure)

Implemented to avoid megamorphic call on castProcedure.

private static <T> void
batchReject(T[] array, int start, int end, FastListRejectProcedure<T> castProcedure)

Implemented to avoid megamorphic call on castProcedure.

public static <T, V, R extends Collection<V>> R
collect(T[] array, int size, Function<? super T, ? extends V> function, R target)

public static <R extends MutableBooleanCollection, T> R
collectBoolean(T[] items, int size, BooleanFunction<? super T> booleanFunction, R target)

Adds all array elements to the target MutableBooleanCollection after using the function supplied to convert each source element to the appropriate type

public static <R extends MutableByteCollection, T> R
collectByte(T[] items, int size, ByteFunction<? super T> byteFunction, R target)

Adds all array elements to the target MutableByteCollection after using the function supplied to convert each source element to the appropriate type

public static <R extends MutableCharCollection, T> R
collectChar(T[] items, int size, CharFunction<? super T> charFunction, R target)

Adds all array elements to the target MutableCharCollection after using the function supplied to convert each source element to the appropriate type

public static <R extends MutableDoubleCollection, T> R
collectDouble(T[] items, int size, DoubleFunction<? super T> doubleFunction, R target)

Adds all array elements to the target MutableDoubleCollection after using the function supplied to convert each source element to the appropriate type

public static <R extends MutableFloatCollection, T> R
collectFloat(T[] items, int size, FloatFunction<? super T> floatFunction, R target)

Adds all array elements to the target MutableFloatCollection after using the function supplied to convert each source element to the appropriate type

public static <T, V, R extends Collection<V>> R
collectIf(T[] array, int size, Predicate<? super T> predicate, Function<? super T, ? extends V> function, R target)

public static <R extends MutableIntCollection, T> R
collectInt(T[] items, int size, IntFunction<? super T> intFunction, R target)

Adds all array elements to the target MutableIntCollection after using the function supplied to convert each source element to the appropriate type

public static <R extends MutableLongCollection, T> R
collectLong(T[] items, int size, LongFunction<? super T> longFunction, R target)

Adds all array elements to the target MutableLongCollection after using the function supplied to convert each source element to the appropriate type

public static <R extends MutableShortCollection, T> R
collectShort(T[] items, int size, ShortFunction<? super T> shortFunction, R target)

Adds all array elements to the target MutableShortCollection after using the function supplied to convert each source element to the appropriate type

public static <T, P, V, R extends Collection<V>> R
collectWith(T[] array, int size, Function2<? super T, ? super P, ? extends V> function, P parameter, R target)

public static <T, V, R extends Collection<V>> R
collectWithIndex(T[] array, int size, ObjectIntToObjectFunction<? super T, ? extends V> function, R target)

public static <T, P> boolean
corresponds(T[] array, int size, OrderedIterable<P> other, Predicate2<? super T, ? super P> predicate)

public static <T> int
count(T[] array, int size, Predicate<? super T> predicate)

public static <T, P> int
countWith(T[] array, int size, Predicate2<? super T, ? super P> predicate, P parameter)

public static <T> T
detect(T[] array, int size, Predicate<? super T> predicate)

public static <T> int
detectIndex(T[] objectArray, int size, Predicate<? super T> predicate)

public static <T> int
detectLastIndex(T[] objectArray, int size, Predicate<? super T> predicate)

public static <T> Optional<T>
detectOptional(T[] array, int size, Predicate<? super T> predicate)

public static <T, P> T
detectWith(T[] array, int size, Predicate2<? super T, ? super P> predicate, P parameter)

public static <T, P> Optional<T>
detectWithOptional(T[] array, int size, Predicate2<? super T, ? super P> predicate, P parameter)

public static <T, R extends List<T>> R
distinct(T[] objectArray, int size, R targetList)
Deprecated in 7.0.

public static <T> FastList<T>
distinct(T[] objectArray, int size)

public static <T> FastList<T>
distinct(T[] objectArray, int size, HashingStrategy<? super T> hashingStrategy)

private static void
public static <T, V, R extends Collection<V>> R
flatCollect(T[] array, int size, Function<? super T, ? extends Iterable<V>> function, R target)

public static <T> void
forEachWithIndex(T[] objectArray, int size, ObjectIntProcedure<? super T> objectIntProcedure)

public static <T> void
forEachWithIndexWithoutChecks(T[] objectArray, int from, int to, ObjectIntProcedure<? super T> objectIntProcedure)

public static <T> void
forEachWithoutChecks(T[] objectArray, int from, int to, Procedure<? super T> procedure)

public static <T, V, R extends MutableMultimap<V, T>> R
groupBy(T[] array, int size, Function<? super T, ? extends V> function, R target)

public static <T, V, R extends MutableMultimap<V, T>> R
groupByEach(T[] array, int size, Function<? super T, ? extends Iterable<V>> function, R target)

public static <T, K, R extends MutableMapIterable<K, T>> R
groupByUniqueKey(T[] array, int size, Function<? super T, ? extends K> function, R target)

public static int
indexOf(Object[] array, int size, Object object)

public static int
lastIndexOf(Object[] array, int size, Object object)

public static <T> T
max(T[] array, int size, Comparator<? super T> comparator)

public static <T> T
max(T[] array, int size)

public static <T, V extends Comparable<? super V>> T
maxBy(T[] array, int size, Function<? super T, ? extends V> function)

public static <T> T
min(T[] array, int size, Comparator<? super T> comparator)

public static <T> T
min(T[] array, int size)

public static <T, V extends Comparable<? super V>> T
minBy(T[] array, int size, Function<? super T, ? extends V> function)

public static <T> boolean
noneSatisfy(T[] array, int size, Predicate<? super T> predicate)

public static <T, P> boolean
noneSatisfyWith(T[] array, int size, Predicate2<? super T, ? super P> predicate, P parameter)

private static <T> boolean
nonRandomAccessListEquals(T[] array, int size, List<?> list)

public static <T> PartitionFastList<T>
partition(T[] array, int size, Predicate<? super T> predicate)

public static <T, P> PartitionFastList<T>
partitionWith(T[] array, int size, Predicate2<? super T, ? super P> predicate, P parameter)

private static <T> boolean
randomAccessListEquals(T[] array, int size, List<?> list)

public static <T> Optional<T>
reduce(T[] items, int size, BinaryOperator<T> accumulator)

public static <R, A, T> R
reduceInPlace(T[] items, int size, Collector<? super T, A, R> collector)

public static <R, T> R
reduceInPlace(T[] items, int size, Supplier<R> supplier, BiConsumer<R, ? super T> accumulator)

public static <T, R extends Collection<T>> R
reject(T[] array, int size, Predicate<? super T> predicate, R target)

public static <T, P, R extends Collection<T>> R
rejectWith(T[] array, int size, Predicate2<? super T, ? super P> predicate, P parameter, R target)

public static <R extends Collection<T>, T> R
rejectWithIndex(T[] array, int size, ObjectIntPredicate<? super T> predicate, R target)

Adds all array elements to the target Collection that return false when evaluating the specified predicate which is supplied each element and its relative index.

public static <T> void
replaceAll(T[] items, int size, UnaryOperator<T> operator)

public static <T, R extends Collection<T>> R
select(T[] array, int size, Predicate<? super T> predicate, R target)

public static <T, P> Twin<MutableList<T>>
selectAndRejectWith(T[] objectArray, int size, Predicate2<? super T, ? super P> predicate, P parameter)
Deprecated since 6.0 use RichIterable#partitionWith(Predicate2, Object) instead.

public static <T> FastList<T>
selectInstancesOf(Object[] array, int size, Class<T> clazz)

public static <T, P, R extends Collection<T>> R
selectWith(T[] array, int size, Predicate2<? super T, ? super P> predicate, P parameter, R targetCollection)

public static <R extends Collection<T>, T> R
selectWithIndex(T[] array, int size, ObjectIntPredicate<? super T> predicate, R target)

Adds all array elements to the target Collection that return true when evaluating the specified predicate which is supplied each element and its relative index.

public static <T> boolean
shortCircuit(T[] array, int size, Predicate<? super T> predicate, boolean expected, boolean onShortCircuit, boolean atEnd)

public static <T, P> boolean
shortCircuitWith(T[] array, int size, Predicate2<? super T, ? super P> predicate2, P parameter, boolean expected, boolean onShortCircuit, boolean atEnd)

public static <V, T> MutableObjectDoubleMap<V>
sumByDouble(T[] array, int size, Function<? super T, ? extends V> groupBy, DoubleFunction<? super T> function)

public static <V, T> MutableObjectDoubleMap<V>
sumByFloat(T[] array, int size, Function<? super T, ? extends V> groupBy, FloatFunction<? super T> function)

public static <V, T> MutableObjectLongMap<V>
sumByInt(T[] array, int size, Function<? super T, ? extends V> groupBy, IntFunction<? super T> function)

public static <V, T> MutableObjectLongMap<V>
sumByLong(T[] array, int size, Function<? super T, ? extends V> groupBy, LongFunction<? super T> function)

public static <T> DoubleSummaryStatistics
summarizeDouble(T[] items, int size, DoubleFunction<? super T> function)

public static <T> DoubleSummaryStatistics
summarizeFloat(T[] items, int size, FloatFunction<? super T> function)

public static <T> IntSummaryStatistics
summarizeInt(T[] items, int size, IntFunction<? super T> function)

public static <T> LongSummaryStatistics
summarizeLong(T[] items, int size, LongFunction<? super T> function)

public static <T> double
sumOfDouble(T[] array, int size, DoubleFunction<? super T> function)

public static <T> double
sumOfFloat(T[] array, int size, FloatFunction<? super T> function)

public static <T> long
sumOfInt(T[] array, int size, IntFunction<? super T> function)

public static <T> long
sumOfLong(T[] array, int size, LongFunction<? super T> function)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait