public final class InternalArrayIterate
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <T> boolean |
allSatisfy(T[] array,
int size,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
static <T,P> boolean |
allSatisfyWith(T[] array,
int size,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
static <T> boolean |
anySatisfy(T[] array,
int size,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
static <T,P> boolean |
anySatisfyWith(T[] array,
int size,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
static <T> void |
appendString(com.gs.collections.api.list.ListIterable<T> iterable,
T[] array,
int size,
java.lang.Appendable appendable,
java.lang.String start,
java.lang.String separator,
java.lang.String end) |
static <T> boolean |
arrayEqualsList(T[] array,
int size,
java.util.List<?> list) |
static <T> void |
batchForEach(com.gs.collections.api.block.procedure.Procedure<? super T> procedure,
T[] array,
int size,
int sectionIndex,
int sectionCount) |
static <T,V,R extends java.util.Collection<V>> |
collect(T[] array,
int size,
com.gs.collections.api.block.function.Function<? super T,? extends V> function,
R target) |
static <T,V,R extends java.util.Collection<V>> |
collectIf(T[] array,
int size,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate,
com.gs.collections.api.block.function.Function<? super T,? extends V> function,
R target) |
static <T,P,V,R extends java.util.Collection<V>> |
collectWith(T[] array,
int size,
com.gs.collections.api.block.function.Function2<? super T,? super P,? extends V> function,
P parameter,
R targetCollection) |
static <T,P> boolean |
corresponds(T[] array,
int size,
com.gs.collections.api.ordered.OrderedIterable<P> other,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate) |
static <T> int |
count(T[] array,
int size,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
static <T,P> int |
countWith(T[] array,
int size,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
static <T> T |
detect(T[] array,
int size,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
static <T> int |
detectIndex(T[] objectArray,
int size,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
static <T> int |
detectLastIndex(T[] objectArray,
int size,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
static <T,P> T |
detectWith(T[] array,
int size,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
static <T> FastList<T> |
distinct(T[] objectArray,
int size) |
static <T> FastList<T> |
distinct(T[] objectArray,
int size,
com.gs.collections.api.block.HashingStrategy<? super T> hashingStrategy) |
static <T,R extends java.util.List<T>> |
distinct(T[] objectArray,
int size,
R targetList)
Deprecated.
in 7.0.
|
static <T,V,R extends java.util.Collection<V>> |
flatCollect(T[] array,
int size,
com.gs.collections.api.block.function.Function<? super T,? extends java.lang.Iterable<V>> function,
R target) |
static <T> void |
forEachWithIndex(T[] objectArray,
int size,
com.gs.collections.api.block.procedure.primitive.ObjectIntProcedure<? super T> objectIntProcedure) |
static <T> void |
forEachWithIndexWithoutChecks(T[] objectArray,
int from,
int to,
com.gs.collections.api.block.procedure.primitive.ObjectIntProcedure<? super T> objectIntProcedure) |
static <T> void |
forEachWithoutChecks(T[] objectArray,
int from,
int to,
com.gs.collections.api.block.procedure.Procedure<? super T> procedure) |
static <T,V,R extends com.gs.collections.api.multimap.MutableMultimap<V,T>> |
groupBy(T[] array,
int size,
com.gs.collections.api.block.function.Function<? super T,? extends V> function,
R target) |
static <T,V,R extends com.gs.collections.api.multimap.MutableMultimap<V,T>> |
groupByEach(T[] array,
int size,
com.gs.collections.api.block.function.Function<? super T,? extends java.lang.Iterable<V>> function,
R target) |
static <T,K,R extends com.gs.collections.api.map.MutableMap<K,T>> |
groupByUniqueKey(T[] array,
int size,
com.gs.collections.api.block.function.Function<? super T,? extends K> function,
R target) |
static int |
indexOf(java.lang.Object[] array,
int size,
java.lang.Object object) |
static int |
lastIndexOf(java.lang.Object[] array,
int size,
java.lang.Object object) |
static <T> T |
max(T[] array,
int size) |
static <T> T |
max(T[] array,
int size,
java.util.Comparator<? super T> comparator) |
static <T,V extends java.lang.Comparable<? super V>> |
maxBy(T[] array,
int size,
com.gs.collections.api.block.function.Function<? super T,? extends V> function) |
static <T> T |
min(T[] array,
int size) |
static <T> T |
min(T[] array,
int size,
java.util.Comparator<? super T> comparator) |
static <T,V extends java.lang.Comparable<? super V>> |
minBy(T[] array,
int size,
com.gs.collections.api.block.function.Function<? super T,? extends V> function) |
static <T> boolean |
noneSatisfy(T[] array,
int size,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
static <T,P> boolean |
noneSatisfyWith(T[] array,
int size,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
static <T> PartitionFastList<T> |
partition(T[] array,
int size,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
static <T,P> PartitionFastList<T> |
partitionWith(T[] array,
int size,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
static <T,R extends java.util.Collection<T>> |
reject(T[] array,
int size,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate,
R target) |
static <T,P,R extends java.util.Collection<T>> |
rejectWith(T[] array,
int size,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter,
R target) |
static <T,R extends java.util.Collection<T>> |
select(T[] array,
int size,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate,
R target) |
static <T,P> com.gs.collections.api.tuple.Twin<com.gs.collections.api.list.MutableList<T>> |
selectAndRejectWith(T[] objectArray,
int size,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter)
Deprecated.
since 6.0 use
RichIterable.partitionWith(Predicate2, Object) instead. |
static <T> FastList<T> |
selectInstancesOf(java.lang.Object[] array,
int size,
java.lang.Class<T> clazz) |
static <T,P,R extends java.util.Collection<T>> |
selectWith(T[] array,
int size,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter,
R targetCollection) |
static <T> boolean |
shortCircuit(T[] array,
int size,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate,
boolean expected,
boolean onShortCircuit,
boolean atEnd) |
static <T,P> boolean |
shortCircuitWith(T[] array,
int size,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate2,
P parameter,
boolean expected,
boolean onShortCircuit,
boolean atEnd) |
static <V,T> com.gs.collections.api.map.primitive.ObjectDoubleMap<V> |
sumByDouble(T[] array,
int size,
com.gs.collections.api.block.function.Function<T,V> groupBy,
com.gs.collections.api.block.function.primitive.DoubleFunction<? super T> function) |
static <V,T> com.gs.collections.api.map.primitive.ObjectDoubleMap<V> |
sumByFloat(T[] array,
int size,
com.gs.collections.api.block.function.Function<T,V> groupBy,
com.gs.collections.api.block.function.primitive.FloatFunction<? super T> function) |
static <V,T> com.gs.collections.api.map.primitive.ObjectLongMap<V> |
sumByInt(T[] array,
int size,
com.gs.collections.api.block.function.Function<T,V> groupBy,
com.gs.collections.api.block.function.primitive.IntFunction<? super T> function) |
static <V,T> com.gs.collections.api.map.primitive.ObjectLongMap<V> |
sumByLong(T[] array,
int size,
com.gs.collections.api.block.function.Function<T,V> groupBy,
com.gs.collections.api.block.function.primitive.LongFunction<? super T> function) |
static <T> double |
sumOfDouble(T[] array,
int size,
com.gs.collections.api.block.function.primitive.DoubleFunction<? super T> function) |
static <T> double |
sumOfFloat(T[] array,
int size,
com.gs.collections.api.block.function.primitive.FloatFunction<? super T> function) |
static <T> long |
sumOfInt(T[] array,
int size,
com.gs.collections.api.block.function.primitive.IntFunction<? super T> function) |
static <T> long |
sumOfLong(T[] array,
int size,
com.gs.collections.api.block.function.primitive.LongFunction<? super T> function) |
public static <T> boolean arrayEqualsList(T[] array,
int size,
java.util.List<?> list)
public static <T> void forEachWithoutChecks(T[] objectArray,
int from,
int to,
com.gs.collections.api.block.procedure.Procedure<? super T> procedure)
public static <T> void forEachWithIndexWithoutChecks(T[] objectArray,
int from,
int to,
com.gs.collections.api.block.procedure.primitive.ObjectIntProcedure<? super T> objectIntProcedure)
public static <T> void batchForEach(com.gs.collections.api.block.procedure.Procedure<? super T> procedure,
T[] array,
int size,
int sectionIndex,
int sectionCount)
public static <T,V,R extends com.gs.collections.api.multimap.MutableMultimap<V,T>> R groupBy(T[] array,
int size,
com.gs.collections.api.block.function.Function<? super T,? extends V> function,
R target)
public static <T,V,R extends com.gs.collections.api.multimap.MutableMultimap<V,T>> R groupByEach(T[] array,
int size,
com.gs.collections.api.block.function.Function<? super T,? extends java.lang.Iterable<V>> function,
R target)
public static <T,K,R extends com.gs.collections.api.map.MutableMap<K,T>> R groupByUniqueKey(T[] array,
int size,
com.gs.collections.api.block.function.Function<? super T,? extends K> function,
R target)
public static <T> PartitionFastList<T> partition(T[] array, int size, com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
public static <T,P> PartitionFastList<T> partitionWith(T[] array, int size, com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
@Deprecated
public static <T,P> com.gs.collections.api.tuple.Twin<com.gs.collections.api.list.MutableList<T>> selectAndRejectWith(T[] objectArray,
int size,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter)
RichIterable.partitionWith(Predicate2, Object) instead.public static int indexOf(java.lang.Object[] array,
int size,
java.lang.Object object)
public static int lastIndexOf(java.lang.Object[] array,
int size,
java.lang.Object object)
public static <T,R extends java.util.Collection<T>> R select(T[] array,
int size,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate,
R target)
public static <T,P,R extends java.util.Collection<T>> R selectWith(T[] array,
int size,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter,
R targetCollection)
public static <T,R extends java.util.Collection<T>> R reject(T[] array,
int size,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate,
R target)
public static <T,P,R extends java.util.Collection<T>> R rejectWith(T[] array,
int size,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter,
R target)
public static <T> FastList<T> selectInstancesOf(java.lang.Object[] array, int size, java.lang.Class<T> clazz)
public static <T,V,R extends java.util.Collection<V>> R collect(T[] array,
int size,
com.gs.collections.api.block.function.Function<? super T,? extends V> function,
R target)
public static <T,V,R extends java.util.Collection<V>> R flatCollect(T[] array,
int size,
com.gs.collections.api.block.function.Function<? super T,? extends java.lang.Iterable<V>> function,
R target)
public static <T,P,V,R extends java.util.Collection<V>> R collectWith(T[] array,
int size,
com.gs.collections.api.block.function.Function2<? super T,? super P,? extends V> function,
P parameter,
R targetCollection)
public static <T,V,R extends java.util.Collection<V>> R collectIf(T[] array,
int size,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate,
com.gs.collections.api.block.function.Function<? super T,? extends V> function,
R target)
public static <T> T min(T[] array,
int size,
java.util.Comparator<? super T> comparator)
public static <T> T max(T[] array,
int size,
java.util.Comparator<? super T> comparator)
public static <T> T min(T[] array,
int size)
public static <T> T max(T[] array,
int size)
public static <T,V extends java.lang.Comparable<? super V>> T minBy(T[] array,
int size,
com.gs.collections.api.block.function.Function<? super T,? extends V> function)
public static <T,V extends java.lang.Comparable<? super V>> T maxBy(T[] array,
int size,
com.gs.collections.api.block.function.Function<? super T,? extends V> function)
public static <T> int count(T[] array,
int size,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
public static <T,P> int countWith(T[] array,
int size,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter)
public static <T> boolean shortCircuit(T[] array,
int size,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate,
boolean expected,
boolean onShortCircuit,
boolean atEnd)
public static <T,P> boolean shortCircuitWith(T[] array,
int size,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate2,
P parameter,
boolean expected,
boolean onShortCircuit,
boolean atEnd)
public static <T,P> boolean corresponds(T[] array,
int size,
com.gs.collections.api.ordered.OrderedIterable<P> other,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate)
public static <T> boolean anySatisfy(T[] array,
int size,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
public static <T,P> boolean anySatisfyWith(T[] array,
int size,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter)
public static <T> boolean allSatisfy(T[] array,
int size,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
public static <T,P> boolean allSatisfyWith(T[] array,
int size,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter)
public static <T> boolean noneSatisfy(T[] array,
int size,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
public static <T,P> boolean noneSatisfyWith(T[] array,
int size,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter)
public static <T> T detect(T[] array,
int size,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
public static <T,P> T detectWith(T[] array,
int size,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter)
public static <T> void appendString(com.gs.collections.api.list.ListIterable<T> iterable,
T[] array,
int size,
java.lang.Appendable appendable,
java.lang.String start,
java.lang.String separator,
java.lang.String end)
public static <T> int detectIndex(T[] objectArray,
int size,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
public static <T> int detectLastIndex(T[] objectArray,
int size,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
public static <T> void forEachWithIndex(T[] objectArray,
int size,
com.gs.collections.api.block.procedure.primitive.ObjectIntProcedure<? super T> objectIntProcedure)
@Deprecated
public static <T,R extends java.util.List<T>> R distinct(T[] objectArray,
int size,
R targetList)
public static <T> FastList<T> distinct(T[] objectArray, int size)
public static <T> FastList<T> distinct(T[] objectArray, int size, com.gs.collections.api.block.HashingStrategy<? super T> hashingStrategy)
public static <T> long sumOfInt(T[] array,
int size,
com.gs.collections.api.block.function.primitive.IntFunction<? super T> function)
public static <T> long sumOfLong(T[] array,
int size,
com.gs.collections.api.block.function.primitive.LongFunction<? super T> function)
public static <T> double sumOfFloat(T[] array,
int size,
com.gs.collections.api.block.function.primitive.FloatFunction<? super T> function)
public static <T> double sumOfDouble(T[] array,
int size,
com.gs.collections.api.block.function.primitive.DoubleFunction<? super T> function)
public static <V,T> com.gs.collections.api.map.primitive.ObjectLongMap<V> sumByInt(T[] array,
int size,
com.gs.collections.api.block.function.Function<T,V> groupBy,
com.gs.collections.api.block.function.primitive.IntFunction<? super T> function)
public static <V,T> com.gs.collections.api.map.primitive.ObjectLongMap<V> sumByLong(T[] array,
int size,
com.gs.collections.api.block.function.Function<T,V> groupBy,
com.gs.collections.api.block.function.primitive.LongFunction<? super T> function)
public static <V,T> com.gs.collections.api.map.primitive.ObjectDoubleMap<V> sumByFloat(T[] array,
int size,
com.gs.collections.api.block.function.Function<T,V> groupBy,
com.gs.collections.api.block.function.primitive.FloatFunction<? super T> function)
public static <V,T> com.gs.collections.api.map.primitive.ObjectDoubleMap<V> sumByDouble(T[] array,
int size,
com.gs.collections.api.block.function.Function<T,V> groupBy,
com.gs.collections.api.block.function.primitive.DoubleFunction<? super T> function)