|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjsr166y.forkjoin.ParallelArray.WithLongMapping<T>
public abstract static class ParallelArray.WithLongMapping<T>
A modifier for parallel array operations to apply to mappings of elements to longs, not to the elements themselves
Method Summary | ||
---|---|---|
abstract ParallelLongArray |
all()
Returns a new ParallelLongArray holding mappings |
|
abstract int |
anyIndex()
Returns the index of some element matching bound and filter constraints, or -1 if none. |
|
void |
apply(Ops.LongProcedure procedure)
Applies the given procedure |
|
long |
max()
Returns the maximum element, or Long.MIN_VALUE if empty |
|
long |
max(Ops.LongComparator comparator)
Returns the maximum element, or Long.MIN_VALUE if empty |
|
long |
min()
Returns the minimum element, or Long.MAX_VALUE if empty |
|
long |
min(Ops.LongComparator comparator)
Returns the minimum element, or Long.MAX_VALUE if empty |
|
long |
reduce(Ops.LongReducer reducer,
long base)
Returns reduction of mapped elements |
|
abstract int |
size()
Return the number of elements selected using bound or filter restrictions. |
|
long |
sum()
Returns the sum of elements |
|
ParallelLongArray.SummaryStatistics |
summary()
Returns summary statistics, using natural comparator |
|
ParallelLongArray.SummaryStatistics |
summary(Ops.LongComparator comparator)
Returns summary statistics |
|
abstract ParallelArray.WithLongMapping<T> |
withMapping(Ops.LongMapper mapper)
Returns an operation prefix that causes a method to operate on mapped elements of the array using the given mapper. |
|
abstract
|
withMapping(Ops.MapperFromLong<? extends U> mapper)
Returns an operation prefix that causes a method to operate on mapped elements of the array using the given mapper. |
|
abstract ParallelArray.WithDoubleMapping<T> |
withMapping(Ops.MapperFromLongToDouble 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.LongProcedure procedure)
procedure
- the procedurepublic long reduce(Ops.LongReducer reducer, long base)
reducer
- the reducerbase
- the result for an empty array
public long min()
public long min(Ops.LongComparator comparator)
comparator
- the comparator
public long max()
public long max(Ops.LongComparator comparator)
comparator
- the comparator
public long sum()
public ParallelLongArray.SummaryStatistics summary(Ops.LongComparator comparator)
comparator
- the comparator to use for
locating minimum and maximum elements
public ParallelLongArray.SummaryStatistics summary()
public abstract ParallelLongArray all()
public abstract int size()
public abstract int anyIndex()
public abstract ParallelArray.WithDoubleMapping<T> withMapping(Ops.MapperFromLongToDouble mapper)
mapper
- the mapper
public abstract ParallelArray.WithLongMapping<T> withMapping(Ops.LongMapper mapper)
mapper
- the mapper
public abstract <U> ParallelArray.WithMapping<T,U> withMapping(Ops.MapperFromLong<? extends U> mapper)
mapper
- the mapper
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |