|
org.codehaus.gpars | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object AbstractParallelAnyArray.LPap groovyx.gpars.extra166y.ParallelLongArrayWithLongMapping groovyx.gpars.extra166y.ParallelLongArrayWithFilter
public abstract class ParallelLongArrayWithFilter extends ParallelLongArrayWithLongMapping
A prefix view of ParallelLongArray that causes operations to apply only to elements for which a selector returns true. Instances of this class may be constructed only via prefix methods of ParallelLongArray or its other prefix classes.
Constructor Summary | |
ParallelLongArrayWithFilter(ForkJoinPool ex, int origin, int fence, long[] array)
|
Method Summary | |
---|---|
ParallelLongArray
|
allUniqueElements()
Returns a new ParallelLongArray containing only unique elements (that is, without any duplicates). |
boolean
|
hasAllEqualElements(ParallelLongArrayWithLongMapping other)
Returns true if all elements at the same relative positions of this and other array are equal. |
void
|
leafTransfer(int lo, int hi, long[] dest, int offset)
|
void
|
leafTransferByIndex(int[] indices, int loIdx, int hiIdx, long[] dest, int offset)
|
long
|
lget(int i)
|
ParallelLongArrayWithFilter
|
replaceWithGeneratedValue(LongGenerator generator)
Replaces elements with results of applying the given generator. |
ParallelLongArrayWithFilter
|
replaceWithMappedIndex(IntToLong op)
Replaces elements with the results of applying the given op to their indices. |
ParallelLongArrayWithFilter
|
replaceWithMappedIndex(IntAndLongToLong op)
Replaces elements with the results of applying the given mapping to each index and current element value. |
ParallelLongArrayWithFilter
|
replaceWithMapping(LongOp op)
Replaces elements with the results of applying the given op to their current values. |
ParallelLongArrayWithFilter
|
replaceWithMapping(BinaryLongOp combiner, ParallelLongArrayWithLongMapping other)
Replaces elements with results of applying op(thisElement, otherElement). |
ParallelLongArrayWithFilter
|
replaceWithMapping(BinaryLongOp combiner, long[] other)
Replaces elements with results of applying op(thisElement, otherElement). |
ParallelLongArrayWithFilter
|
replaceWithValue(long value)
Replaces elements with the given value. |
ParallelLongArrayWithFilter
|
withFilter(LongPredicate selector)
Returns an operation prefix that causes a method to operate only on elements for which the current selector (if present) and the given selector returns true. |
ParallelLongArrayWithFilter
|
withFilter(BinaryLongPredicate selector, ParallelLongArrayWithLongMapping other)
Returns an operation prefix that causes a method to operate only on elements for which the current selector (if present) and the given binary selector returns true. |
ParallelLongArrayWithFilter
|
withIndexedFilter(IntAndLongPredicate selector)
Returns an operation prefix that causes a method to operate only on elements for which the current selector (if present) and the given indexed selector returns true. |
Methods inherited from class ParallelLongArrayWithLongMapping | |
---|---|
all, apply, max, max, min, min, reduce, sequentially, sum, summary, summary, withIndexedMapping, withIndexedMapping, withIndexedMapping, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping |
Constructor Detail |
---|
ParallelLongArrayWithFilter(ForkJoinPool ex, int origin, int fence, long[] array)
Method Detail |
---|
public ParallelLongArray allUniqueElements()
public boolean hasAllEqualElements(ParallelLongArrayWithLongMapping other)
other
- the other array
final void leafTransfer(int lo, int hi, long[] dest, int offset)
final void leafTransferByIndex(int[] indices, int loIdx, int hiIdx, long[] dest, int offset)
final long lget(int i)
public ParallelLongArrayWithFilter replaceWithGeneratedValue(LongGenerator generator)
generator
- the generator
public ParallelLongArrayWithFilter replaceWithMappedIndex(IntToLong op)
op
- the op
public ParallelLongArrayWithFilter replaceWithMappedIndex(IntAndLongToLong op)
op
- the op
public ParallelLongArrayWithFilter replaceWithMapping(LongOp op)
op
- the op
public ParallelLongArrayWithFilter replaceWithMapping(BinaryLongOp combiner, ParallelLongArrayWithLongMapping other)
other
- the other arraycombiner
- the combiner
public ParallelLongArrayWithFilter replaceWithMapping(BinaryLongOp combiner, long[] other)
other
- the other arraycombiner
- the combiner
public ParallelLongArrayWithFilter replaceWithValue(long value)
value
- the value
public ParallelLongArrayWithFilter withFilter(LongPredicate selector)
selector
- the selector
public ParallelLongArrayWithFilter withFilter(BinaryLongPredicate selector, ParallelLongArrayWithLongMapping other)
selector
- the selector
public ParallelLongArrayWithFilter withIndexedFilter(IntAndLongPredicate selector)
selector
- the selector
Copyright © 2008–2012 Václav Pech. All Rights Reserved.