public abstract class ParallelLongArrayWithFilter extends ParallelLongArrayWithLongMapping
Modifier and Type | Method and Description |
---|---|
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.
|
ParallelLongArrayWithFilter |
replaceWithGeneratedValue(Ops.LongGenerator generator)
Replaces elements with results of applying the given
generator.
|
ParallelLongArrayWithFilter |
replaceWithMappedIndex(Ops.IntAndLongToLong op)
Replaces elements with the results of applying the given
mapping to each index and current element value.
|
ParallelLongArrayWithFilter |
replaceWithMappedIndex(Ops.IntToLong op)
Replaces elements with the results of applying the given
op to their indices.
|
ParallelLongArrayWithFilter |
replaceWithMapping(Ops.BinaryLongOp combiner,
long[] other)
Replaces elements with results of applying
op(thisElement, otherElement).
|
ParallelLongArrayWithFilter |
replaceWithMapping(Ops.BinaryLongOp combiner,
ParallelLongArrayWithLongMapping other)
Replaces elements with results of applying
op(thisElement, otherElement).
|
ParallelLongArrayWithFilter |
replaceWithMapping(Ops.LongOp op)
Replaces elements with the results of applying the given
op to their current values.
|
ParallelLongArrayWithFilter |
replaceWithValue(long value)
Replaces elements with the given value.
|
ParallelLongArrayWithFilter |
withFilter(Ops.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.
|
abstract ParallelLongArrayWithFilter |
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.
|
abstract ParallelLongArrayWithFilter |
withIndexedFilter(Ops.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.
|
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
anyIndex, isEmpty, size
public ParallelLongArrayWithFilter replaceWithMapping(Ops.LongOp op)
op
- the oppublic ParallelLongArrayWithFilter replaceWithMappedIndex(Ops.IntToLong op)
op
- the oppublic ParallelLongArrayWithFilter replaceWithMappedIndex(Ops.IntAndLongToLong op)
op
- the oppublic ParallelLongArrayWithFilter replaceWithGeneratedValue(Ops.LongGenerator generator)
generator
- the generatorpublic ParallelLongArrayWithFilter replaceWithValue(long value)
value
- the valuepublic ParallelLongArrayWithFilter replaceWithMapping(Ops.BinaryLongOp combiner, ParallelLongArrayWithLongMapping other)
other
- the other arraycombiner
- the combinerpublic ParallelLongArrayWithFilter replaceWithMapping(Ops.BinaryLongOp combiner, long[] other)
other
- the other arraycombiner
- the combinerpublic ParallelLongArray allUniqueElements()
public abstract ParallelLongArrayWithFilter withFilter(Ops.LongPredicate selector)
selector
- the selectorpublic ParallelLongArrayWithFilter withFilter(Ops.BinaryLongPredicate selector, ParallelLongArrayWithLongMapping other)
selector
- the selectorpublic abstract ParallelLongArrayWithFilter withIndexedFilter(Ops.IntAndLongPredicate selector)
selector
- the selectorpublic boolean hasAllEqualElements(ParallelLongArrayWithLongMapping other)
other
- the other array