jsr166y.forkjoin
public abstract static class ParallelDoubleArray.WithFilter extends ParallelDoubleArray.WithDoubleMapping
Modifier and Type | Method and Description |
---|---|
abstract ParallelDoubleArray |
allUniqueElements()
Returns a new ParallelDoubleArray containing only unique
elements (that is, without any duplicates).
|
abstract ParallelDoubleArray.WithFilter |
orFilter(Ops.DoublePredicate selector)
Returns an operation prefix that causes a method to operate
only on elements for which the current selector (if
present) or the given selector returns true
|
abstract void |
removeAll()
Removes from the array all elements matching bound and/or
filter constraints.
|
void |
replaceWithCombination(double[] other,
Ops.DoubleReducer combiner)
Replaces elements with results of applying
combine(thisElement, otherElement)
|
void |
replaceWithCombination(ParallelDoubleArray.WithBounds other,
Ops.DoubleReducer combiner)
Replaces elements with results of applying
combine(thisElement, otherElement)
|
void |
replaceWithCombination(ParallelDoubleArray other,
Ops.DoubleReducer combiner)
Replaces elements with results of applying
combine(thisElement, otherElement)
|
void |
replaceWithGeneratedValue(Ops.DoubleGenerator generator)
Replaces elements with results of applying the given
generator.
|
void |
replaceWithMappedIndex(Ops.MapperFromIntToDouble mapper)
Replaces elements with the results of applying the given
mapper to their indices
|
void |
replaceWithTransform(Ops.DoubleMapper mapper)
Replaces elements with the results of applying the given
mapper to their current values.
|
void |
replaceWithValue(double value)
Replaces elements with the given value.
|
abstract ParallelDoubleArray.WithFilter |
withFilter(Ops.DoublePredicate 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
|
all, anyIndex, apply, max, max, min, min, reduce, size, sum, summary, summary, withMapping, withMapping, withMapping
public void replaceWithTransform(Ops.DoubleMapper mapper)
mapper
- the mapperpublic void replaceWithMappedIndex(Ops.MapperFromIntToDouble mapper)
mapper
- the mapperpublic void replaceWithGeneratedValue(Ops.DoubleGenerator generator)
generator
- the generatorpublic void replaceWithValue(double value)
value
- the valuepublic void replaceWithCombination(ParallelDoubleArray other, Ops.DoubleReducer combiner)
other
- the other arraycombiner
- the combinerjava.lang.ArrayIndexOutOfBoundsException
- if other array has
fewer than upperBound elements.public void replaceWithCombination(ParallelDoubleArray.WithBounds other, Ops.DoubleReducer combiner)
other
- the other array segmentcombiner
- the combinerjava.lang.ArrayIndexOutOfBoundsException
- if other array has
fewer than upperBound elements.public void replaceWithCombination(double[] other, Ops.DoubleReducer combiner)
other
- the other arraycombiner
- the combinerjava.lang.ArrayIndexOutOfBoundsException
- if other array has
fewer than upperBound elements.public abstract void removeAll()
public abstract ParallelDoubleArray allUniqueElements()
public abstract ParallelDoubleArray.WithFilter withFilter(Ops.DoublePredicate selector)
selector
- the selectorpublic abstract ParallelDoubleArray.WithFilter orFilter(Ops.DoublePredicate selector)
selector
- the selector