jsr166y.forkjoin
public abstract static class ParallelLongArray.WithDoubleMapping extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
abstract ParallelDoubleArray |
all()
Returns a new ParallelDoubleArray holding mappings
|
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
|
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 mapped 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 ParallelLongArray.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 <U> ParallelLongArray.WithMapping<U> |
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 ParallelLongArray.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.
|
public void apply(Ops.DoubleProcedure procedure)
procedure
- the procedurepublic double reduce(Ops.DoubleReducer reducer, double base)
reducer
- the reducerbase
- the result for an empty arraypublic double min()
public double min(Ops.DoubleComparator comparator)
comparator
- the comparatorpublic double max()
public double max(Ops.DoubleComparator comparator)
comparator
- the comparatorpublic double sum()
public ParallelDoubleArray.SummaryStatistics summary(Ops.DoubleComparator comparator)
comparator
- the comparator to use for
locating minimum and maximum elementspublic ParallelDoubleArray.SummaryStatistics summary()
public abstract ParallelDoubleArray all()
public abstract int size()
public abstract int anyIndex()
public abstract ParallelLongArray.WithLongMapping withMapping(Ops.MapperFromDoubleToLong mapper)
mapper
- the mapperpublic abstract ParallelLongArray.WithDoubleMapping withMapping(Ops.DoubleMapper mapper)
mapper
- the mapperpublic abstract <U> ParallelLongArray.WithMapping<U> withMapping(Ops.MapperFromDouble<? extends U> mapper)
mapper
- the mapper