A prefix view of ParallelLongArray that causes operations to apply to mappings of elements, not to the elements themselves. Instances of this class may be constructed only via prefix methods of ParallelLongArray or its other prefix classes.
Constructor and description |
---|
ParallelLongArrayWithMapping
(java.util.concurrent.ForkJoinPool ex, int origin, int fence, long[] array) |
Type | Name and description |
---|---|
ParallelArray<U> |
all() Returns a new ParallelArray holding mapped elements. |
ParallelArray<U> |
all(java.lang.Class<? super U> elementType) Returns a new ParallelArray with the given element type holding all elements. |
U |
any() Returns mapping of some element matching bound and filter constraints, or null if none. |
void |
apply(Procedure<? super U> procedure) Applies the given procedure to mapped elements. |
U |
max(java.util.Comparator<? super U> comparator) Returns the maximum mapped element, or null if empty. |
U |
max() Returns the maximum mapped element, or null if empty, assuming that all elements are Comparables. |
U |
min(java.util.Comparator<? super U> comparator) Returns the minimum mapped element, or null if empty. |
U |
min() Returns the minimum mapped element, or null if empty, assuming that all elements are Comparables. |
U |
reduce(Reducer<U> reducer, U base) Returns reduction of mapped elements. |
java.lang.Iterable<U> |
sequentially() Returns an Iterable view to sequentially step through mapped elements also obeying bound and filter constraints, without performing computations to evaluate them in parallel. |
groovyx.gpars.extra166y.ParallelArray.SummaryStatistics<U> |
summary(java.util.Comparator<? super U> comparator) Returns summary statistics, using the given comparator to locate minimum and maximum elements. |
groovyx.gpars.extra166y.ParallelArray.SummaryStatistics<U> |
summary() Returns summary statistics, assuming that all elements are Comparables. |
ParallelLongArrayWithMapping<V> |
withIndexedMapping(IntAndObjectToObject<? super U, ? extends V> mapper) Returns an operation prefix that causes a method to operate on mappings of this array using the given mapper that accepts as arguments an element's current index and value (as mapped by preceding mappings, if any), and produces a new value. |
ParallelLongArrayWithDoubleMapping |
withIndexedMapping(IntAndObjectToDouble<? super U> mapper) Returns an operation prefix that causes a method to operate on mappings of this array using the given mapper that accepts as arguments an element's current index and value (as mapped by preceding mappings, if any), and produces a new value. |
ParallelLongArrayWithLongMapping |
withIndexedMapping(IntAndObjectToLong<? super U> mapper) Returns an operation prefix that causes a method to operate on mappings of this array using the given mapper that accepts as arguments an element's current index and value (as mapped by preceding mappings, if any), and produces a new value. |
ParallelLongArrayWithMapping<V> |
withMapping(Op<? super U, ? extends V> op) Returns an operation prefix that causes a method to operate on mapped elements of the array using the given op applied to current op's results. |
ParallelLongArrayWithLongMapping |
withMapping(ObjectToLong<? super U> op) Returns an operation prefix that causes a method to operate on mapped elements of the array using the given op applied to current op's results. |
ParallelLongArrayWithDoubleMapping |
withMapping(ObjectToDouble<? super U> op) Returns an operation prefix that causes a method to operate on mapped elements of the array using the given op applied to current op's results. |
ParallelLongArrayWithMapping<W> |
withMapping(BinaryOp<? super U, ? super V, ? extends W> combiner, ParallelArrayWithMapping<X, V> other) Returns an operation prefix that causes a method to operate on binary mappings of this array and the other array. |
ParallelLongArrayWithMapping<V> |
withMapping(ObjectAndDoubleToObject<? super U, ? extends V> combiner, ParallelDoubleArrayWithDoubleMapping other) Returns an operation prefix that causes a method to operate on binary mappings of this array and the other array. |
ParallelLongArrayWithMapping<V> |
withMapping(ObjectAndLongToObject<? super U, ? extends V> combiner, ParallelLongArrayWithLongMapping other) Returns an operation prefix that causes a method to operate on binary mappings of this array and the other array. |
ParallelLongArrayWithDoubleMapping |
withMapping(ObjectAndObjectToDouble<? super U, ? super V> combiner, ParallelArrayWithMapping<W, V> other) Returns an operation prefix that causes a method to operate on binary mappings of this array and the other array. |
ParallelLongArrayWithDoubleMapping |
withMapping(ObjectAndDoubleToDouble<? super U> combiner, ParallelDoubleArrayWithDoubleMapping other) Returns an operation prefix that causes a method to operate on binary mappings of this array and the other array. |
ParallelLongArrayWithDoubleMapping |
withMapping(ObjectAndLongToDouble<? super U> combiner, ParallelLongArrayWithLongMapping other) Returns an operation prefix that causes a method to operate on binary mappings of this array and the other array. |
ParallelLongArrayWithLongMapping |
withMapping(ObjectAndObjectToLong<? super U, ? super V> combiner, ParallelArrayWithMapping<W, V> other) Returns an operation prefix that causes a method to operate on binary mappings of this array and the other array. |
ParallelLongArrayWithLongMapping |
withMapping(ObjectAndDoubleToLong<? super U> combiner, ParallelDoubleArrayWithDoubleMapping other) Returns an operation prefix that causes a method to operate on binary mappings of this array and the other array. |
ParallelLongArrayWithLongMapping |
withMapping(ObjectAndLongToLong<? super U> combiner, ParallelLongArrayWithLongMapping other) Returns an operation prefix that causes a method to operate on binary mappings of this array and the other array. |
Returns a new ParallelArray holding mapped elements.
Returns a new ParallelArray with the given element type holding all elements.
elementType
- the type of the elementsReturns mapping of some element matching bound and filter constraints, or null if none.
Applies the given procedure to mapped elements.
procedure
- the procedureReturns the maximum mapped element, or null if empty.
comparator
- the comparatorReturns the maximum mapped element, or null if empty, assuming that all elements are Comparables.
Returns the minimum mapped element, or null if empty.
comparator
- the comparatorReturns the minimum mapped element, or null if empty, assuming that all elements are Comparables.
Returns reduction of mapped elements.
reducer
- the reducerbase
- the result for an empty arrayReturns an Iterable view to sequentially step through mapped elements also obeying bound and filter constraints, without performing computations to evaluate them in parallel.
Returns summary statistics, using the given comparator to locate minimum and maximum elements.
comparator
- the comparator to use for
locating minimum and maximum elementsReturns summary statistics, assuming that all elements are Comparables.
Returns an operation prefix that causes a method to operate on mappings of this array using the given mapper that accepts as arguments an element's current index and value (as mapped by preceding mappings, if any), and produces a new value.
mapper
- the mapperReturns an operation prefix that causes a method to operate on mappings of this array using the given mapper that accepts as arguments an element's current index and value (as mapped by preceding mappings, if any), and produces a new value.
mapper
- the mapperReturns an operation prefix that causes a method to operate on mappings of this array using the given mapper that accepts as arguments an element's current index and value (as mapped by preceding mappings, if any), and produces a new value.
mapper
- the mapperReturns an operation prefix that causes a method to operate on mapped elements of the array using the given op applied to current op's results.
op
- the opReturns an operation prefix that causes a method to operate on mapped elements of the array using the given op applied to current op's results.
op
- the opReturns an operation prefix that causes a method to operate on mapped elements of the array using the given op applied to current op's results.
op
- the opReturns an operation prefix that causes a method to operate on binary mappings of this array and the other array.
combiner
- the combinerother
- the other arrayReturns an operation prefix that causes a method to operate on binary mappings of this array and the other array.
combiner
- the combinerother
- the other arrayReturns an operation prefix that causes a method to operate on binary mappings of this array and the other array.
combiner
- the combinerother
- the other arrayReturns an operation prefix that causes a method to operate on binary mappings of this array and the other array.
combiner
- the combinerother
- the other arrayReturns an operation prefix that causes a method to operate on binary mappings of this array and the other array.
combiner
- the combinerother
- the other arrayReturns an operation prefix that causes a method to operate on binary mappings of this array and the other array.
combiner
- the combinerother
- the other arrayReturns an operation prefix that causes a method to operate on binary mappings of this array and the other array.
combiner
- the combinerother
- the other arrayReturns an operation prefix that causes a method to operate on binary mappings of this array and the other array.
combiner
- the combinerother
- the other arrayReturns an operation prefix that causes a method to operate on binary mappings of this array and the other array.
combiner
- the combinerother
- the other arrayCopyright © 2008–2014 Václav Pech. All Rights Reserved.