|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjsr166z.forkjoin.ParallelLongArray.WithLongMapping
jsr166z.forkjoin.ParallelLongArray.WithFilter
jsr166z.forkjoin.ParallelLongArray.WithBounds
public static final class ParallelLongArray.WithBounds
A restriction of parallel array operations to apply only within a given range of indices.
| Method Summary | ||
|---|---|---|
int |
anyIndex()
Returns the index of some element matching bound filter constraints, or -1 if none. |
|
ParallelLongArray |
combine(long[] other,
{long,long=>long} combiner)
Returns a ParallelArray containing results of applying combine(thisElement, otherElement) for each element. |
|
ParallelLongArray |
combine(ParallelLongArray other,
{long,long=>long} combiner)
Returns a ParallelArray containing results of applying combine(thisElement, otherElement) for each element. |
|
void |
cumulate({long,long=>long} reducer,
long base)
Replaces each element with the running cumulation of applying the given reducer. |
|
void |
cumulateSum()
Replaces each element with the running sum |
|
ParallelLongArray |
newArray()
Returns a new ParallelArray holding elements |
|
long |
precumulate({long,long=>long} reducer,
long base)
Replaces each element with the cumulation of applying the given reducer to all previous values, and returns the total reduction. |
|
long |
precumulateSum()
Replaces each element with its prefix sum |
|
int |
size()
Returns the number of elements within bounds |
|
void |
sort()
Sorts the elements, using natural comparator |
|
void |
sort({long,long=>int} cmp)
Sorts the elements. |
|
ParallelLongArray.WithFilter |
withFilter({long=>boolean} selector)
Returns an operation prefix that causes a method to operate only on the elements of the array for which the given selector returns true |
|
ParallelLongArray.WithDoubleMapping |
withMapping({long=>double} mapper)
Returns an operation prefix that causes a method to operate on mapped elements of the array using the given mapper. |
|
ParallelLongArray.WithIntMapping |
withMapping({long=>int} mapper)
Returns an operation prefix that causes a method to operate on mapped elements of the array using the given mapper. |
|
ParallelLongArray.WithLongMapping |
withMapping({long=>long} mapper)
Returns an operation prefix that causes a method to operate on mapped elements of the array using the given mapper. |
|
|
withMapping({long=>U} mapper)
Returns an operation prefix that causes a method to operate on mapped elements of the array using the given mapper. |
|
| Methods inherited from class jsr166z.forkjoin.ParallelLongArray.WithFilter |
|---|
any, apply, indexOfMax, indexOfMax, indexOfMin, indexOfMin, max, max, min, min, randomFill, randomFill, reduce, replaceWithCombination, replaceWithCombination, replaceWithGeneratedValue, replaceWithMappedIndex, replaceWithTransform, replaceWithValue, sum |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public ParallelLongArray.WithFilter withFilter({long=>boolean} selector)
selector - the selector
public <U> ParallelLongArray.WithMapping<U> withMapping({long=>U} mapper)
withMapping in class ParallelLongArray.WithFiltermapper - the mapper
public ParallelLongArray.WithDoubleMapping withMapping({long=>double} mapper)
withMapping in class ParallelLongArray.WithFiltermapper - the mapper
public ParallelLongArray.WithLongMapping withMapping({long=>long} mapper)
withMapping in class ParallelLongArray.WithFiltermapper - the mapper
public ParallelLongArray.WithIntMapping withMapping({long=>int} mapper)
withMapping in class ParallelLongArray.WithFiltermapper - the mapper
public int anyIndex()
anyIndex in class ParallelLongArray.WithLongMapping
public ParallelLongArray combine(long[] other,
{long,long=>long} combiner)
other - the other arraycombiner - the combiner
java.lang.ArrayIndexOutOfBoundsException - if other array is
shorter than this array.
public ParallelLongArray combine(ParallelLongArray other,
{long,long=>long} combiner)
other - the other arraycombiner - the combiner
java.lang.ArrayIndexOutOfBoundsException - if other array is
shorter than this array.public int size()
size in class ParallelLongArray.WithLongMapping
public void cumulate({long,long=>long} reducer,
long base)
reducer - the reducerbase - the result for an empty arraypublic void cumulateSum()
public long precumulate({long,long=>long} reducer,
long base)
reducer - the reducerbase - the result for an empty array
public long precumulateSum()
public void sort({long,long=>int} cmp)
cmp - the comparator to usepublic void sort()
public ParallelLongArray newArray()
ParallelLongArray.WithFilter
newArray in class ParallelLongArray.WithFilter
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||