public abstract class ParallelArrayWithFilter<T> extends ParallelArrayWithMapping<T,T>
Modifier and Type | Method and Description |
---|---|
ParallelArray<T> |
allNonidenticalElements()
Returns a new ParallelArray containing only non-null unique
elements (that is, without any duplicates).
|
ParallelArray<T> |
allUniqueElements()
Returns a new ParallelArray containing only non-null unique
elements (that is, without any duplicates).
|
<U,V> boolean |
hasAllEqualElements(ParallelArrayWithMapping<U,V> other)
Returns true if all elements at the same relative positions
of this and other array are equal.
|
<U,V> boolean |
hasAllIdenticalElements(ParallelArrayWithMapping<U,V> other)
Returns true if all elements at the same relative positions
of this and other array are identical.
|
ParallelArrayWithFilter<T> |
replaceWithGeneratedValue(Ops.Generator<? extends T> generator)
Replaces elements with results of applying the given
generator.
|
ParallelArrayWithFilter<T> |
replaceWithMappedIndex(Ops.IntAndObjectToObject<? super T,? extends T> op)
Replaces elements with the results of applying the given
mapping to each index and current element value
|
ParallelArrayWithFilter<T> |
replaceWithMappedIndex(Ops.IntToObject<? extends T> op)
Replaces elements with the results of applying the given
op to their indices
|
<V,W> ParallelArrayWithFilter<T> |
replaceWithMapping(Ops.BinaryOp<? super T,? super V,? extends T> combiner,
ParallelArrayWithMapping<W,V> other)
Replaces elements with results of applying
op(thisElement, otherElement)
|
ParallelArrayWithFilter<T> |
replaceWithMapping(Ops.BinaryOp<T,T,T> combiner,
T[] other)
Replaces elements with results of applying
op(thisElement, otherElement)
|
ParallelArrayWithFilter<T> |
replaceWithMapping(Ops.Op<? super T,? extends T> op)
Replaces elements with the results of applying the given
op to their current values.
|
ParallelArrayWithFilter<T> |
replaceWithValue(T value)
Replaces elements with the given value.
|
<V,W> ParallelArrayWithFilter<T> |
withFilter(Ops.BinaryPredicate<? super T,? super V> selector,
ParallelArrayWithMapping<W,V> 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 ParallelArrayWithFilter<T> |
withFilter(Ops.Predicate<? super T> 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 ParallelArrayWithFilter<T> |
withIndexedFilter(Ops.IntAndObjectPredicate<? super T> 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, all, any, apply, max, max, min, min, reduce, sequentially, summary, summary, withIndexedMapping, withIndexedMapping, withIndexedMapping, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping
anyIndex, isEmpty, size
public ParallelArrayWithFilter<T> replaceWithMapping(Ops.Op<? super T,? extends T> op)
op
- the oppublic ParallelArrayWithFilter<T> replaceWithMappedIndex(Ops.IntToObject<? extends T> op)
op
- the oppublic ParallelArrayWithFilter<T> replaceWithMappedIndex(Ops.IntAndObjectToObject<? super T,? extends T> op)
op
- the oppublic ParallelArrayWithFilter<T> replaceWithGeneratedValue(Ops.Generator<? extends T> generator)
generator
- the generatorpublic ParallelArrayWithFilter<T> replaceWithValue(T value)
value
- the valuepublic <V,W> ParallelArrayWithFilter<T> replaceWithMapping(Ops.BinaryOp<? super T,? super V,? extends T> combiner, ParallelArrayWithMapping<W,V> other)
other
- the other arraycombiner
- the combinerpublic ParallelArrayWithFilter<T> replaceWithMapping(Ops.BinaryOp<T,T,T> combiner, T[] other)
other
- the other arraycombiner
- the combinerpublic ParallelArray<T> allUniqueElements()
public ParallelArray<T> allNonidenticalElements()
public abstract ParallelArrayWithFilter<T> withFilter(Ops.Predicate<? super T> selector)
selector
- the selectorpublic <V,W> ParallelArrayWithFilter<T> withFilter(Ops.BinaryPredicate<? super T,? super V> selector, ParallelArrayWithMapping<W,V> other)
selector
- the selectorpublic abstract ParallelArrayWithFilter<T> withIndexedFilter(Ops.IntAndObjectPredicate<? super T> selector)
selector
- the selectorpublic <U,V> boolean hasAllEqualElements(ParallelArrayWithMapping<U,V> other)
other
- the other arraypublic <U,V> boolean hasAllIdenticalElements(ParallelArrayWithMapping<U,V> other)
other
- the other array