|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjsr166y.forkjoin.ParallelDoubleArray.WithDoubleMapping
public abstract static class ParallelDoubleArray.WithDoubleMapping
A modifier for parallel array operations to apply to mappings of elements to doubles, not to the elements themselves
Method Summary | ||
---|---|---|
abstract ParallelDoubleArray |
all()
Returns a new ParallelDoubleArray holding elements |
|
abstract int |
anyIndex()
Returns the index of some element matching bound and filter constraints, or -1 if none. |
|
void |
apply(Ops.DoubleProcedure procedure)
Applies the given procedure to elements |
|
double |
max()
Returns the maximum element, or -Double.MAX_VALUE if empty |
|
double |
max(Ops.DoubleComparator comparator)
Returns the maximum element, or -Double.MAX_VALUE if empty |
|
double |
min()
Returns the minimum element, or Double.MAX_VALUE if empty |
|
double |
min(Ops.DoubleComparator comparator)
Returns the minimum element, or Double.MAX_VALUE if empty |
|
double |
reduce(Ops.DoubleReducer reducer,
double base)
Returns reduction of elements |
|
abstract int |
size()
Return the number of elements selected using bound or filter restrictions. |
|
double |
sum()
Returns the sum of elements |
|
ParallelDoubleArray.SummaryStatistics |
summary()
Returns summary statistics, using natural comparator |
|
ParallelDoubleArray.SummaryStatistics |
summary(Ops.DoubleComparator comparator)
Returns summary statistics |
|
abstract ParallelDoubleArray.WithDoubleMapping |
withMapping(Ops.DoubleMapper mapper)
Returns an operation prefix that causes a method to operate on mapped elements of the array using the given mapper. |
|
abstract
|
withMapping(Ops.MapperFromDouble<? extends U> mapper)
Returns an operation prefix that causes a method to operate on mapped elements of the array using the given mapper. |
|
abstract ParallelDoubleArray.WithLongMapping |
withMapping(Ops.MapperFromDoubleToLong mapper)
Returns an operation prefix that causes a method to operate on mapped elements of the array using the given mapper. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void apply(Ops.DoubleProcedure procedure)
procedure
- the procedurepublic double reduce(Ops.DoubleReducer reducer, double base)
reducer
- the reducerbase
- the result for an empty array
public double min()
public double min(Ops.DoubleComparator comparator)
comparator
- the comparator
public double max()
public double max(Ops.DoubleComparator comparator)
comparator
- the comparator
public double sum()
public ParallelDoubleArray.SummaryStatistics summary(Ops.DoubleComparator comparator)
comparator
- the comparator to use for
locating minimum and maximum elements
public ParallelDoubleArray.SummaryStatistics summary()
public abstract ParallelDoubleArray all()
public abstract int size()
public abstract int anyIndex()
public abstract ParallelDoubleArray.WithDoubleMapping withMapping(Ops.DoubleMapper mapper)
mapper
- the mapper
public abstract ParallelDoubleArray.WithLongMapping withMapping(Ops.MapperFromDoubleToLong mapper)
mapper
- the mapper
public abstract <U> ParallelDoubleArray.WithMapping<U> withMapping(Ops.MapperFromDouble<? extends U> mapper)
mapper
- the mapper
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |