jsr166y.forkjoin
public abstract static class ParallelLongArray.WithFilter extends ParallelLongArray.WithLongMapping
Modifier and Type | Method and Description |
---|---|
abstract ParallelLongArray |
allUniqueElements()
Returns a new ParallelLongArray containing only unique
elements (that is, without any duplicates).
|
abstract ParallelLongArray.WithFilter |
orFilter(Ops.LongPredicate 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(long[] other,
Ops.LongReducer combiner)
Replaces elements with results of applying
combine(thisElement, otherElement)
|
void |
replaceWithCombination(ParallelLongArray.WithBounds other,
Ops.LongReducer combiner)
Replaces elements with results of applying
combine(thisElement, otherElement)
|
void |
replaceWithCombination(ParallelLongArray other,
Ops.LongReducer combiner)
Replaces elements with results of applying
combine(thisElement, otherElement)
|
void |
replaceWithGeneratedValue(Ops.LongGenerator generator)
Replaces elements with results of applying the given
generator.
|
void |
replaceWithMappedIndex(Ops.MapperFromIntToLong mapper)
Replaces elements with the results of applying the given
mapper to their indices
|
void |
replaceWithTransform(Ops.LongMapper mapper)
Replaces elements with the results of applying the given
mapper to their current values.
|
void |
replaceWithValue(long value)
Replaces elements with the given value.
|
abstract ParallelLongArray.WithFilter |
withFilter(Ops.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
|
all, anyIndex, apply, max, max, min, min, reduce, size, sum, summary, summary, withMapping, withMapping, withMapping
public void replaceWithTransform(Ops.LongMapper mapper)
mapper
- the mapperpublic void replaceWithMappedIndex(Ops.MapperFromIntToLong mapper)
mapper
- the mapperpublic void replaceWithGeneratedValue(Ops.LongGenerator generator)
generator
- the generatorpublic void replaceWithValue(long value)
value
- the valuepublic void replaceWithCombination(ParallelLongArray other, Ops.LongReducer combiner)
other
- the other arraycombiner
- the combinerjava.lang.ArrayIndexOutOfBoundsException
- if other array has
fewer than upperBound elements.public void replaceWithCombination(ParallelLongArray.WithBounds other, Ops.LongReducer combiner)
other
- the other array segmentcombiner
- the combinerjava.lang.ArrayIndexOutOfBoundsException
- if other array has
fewer than upperBound elements.public void replaceWithCombination(long[] other, Ops.LongReducer combiner)
other
- the other arraycombiner
- the combinerjava.lang.ArrayIndexOutOfBoundsException
- if other array has
fewer than upperBound elements.public abstract void removeAll()
public abstract ParallelLongArray allUniqueElements()
public abstract ParallelLongArray.WithFilter withFilter(Ops.LongPredicate selector)
selector
- the selectorpublic abstract ParallelLongArray.WithFilter orFilter(Ops.LongPredicate selector)
selector
- the selector