|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jsr166z.forkjoin.ParallelIntArray.WithDoubleMapping
public abstract static class ParallelIntArray.WithDoubleMapping
A modifier for parallel array operations to apply to mappings of elements to doubles, not to the elements themselves
Method Summary | |
---|---|
abstract double |
any()
Returns mapping of some element matching bound and filter constraints |
abstract int |
anyIndex()
Returns the index of some element matching bound and filter constraints, or -1 if none. |
void |
apply({double=>void} procedure)
Applies the given procedure |
int |
indexOfMax()
Returns the index corresponding to the element for which the given mapping is greatest, or -1 if empty |
int |
indexOfMax({double,double=>int} comparator)
Returns the index corresponding to the element for which the given mapping is greatest, or -1 if empty |
int |
indexOfMin()
Returns the index corresponding to the element for which the given mapping is least, or -1 if empty |
int |
indexOfMin({double,double=>int} comparator)
Returns the index corresponding to the element for which the given mapping is least, or -1 if empty |
double |
max()
Returns the maximum element, or -Double.MAX_VALUE if empty |
double |
max({double,double=>int} 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({double,double=>int} comparator)
Returns the minimum element, or Double.MAX_VALUE if empty |
abstract ParallelDoubleArray |
newArray()
Returns a new ParallelDoubleArray holding mappings |
double |
reduce({double,double=>double} 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 mapped elements |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void apply({double=>void} procedure)
procedure
- the procedurepublic double reduce({double,double=>double} reducer, double base)
reducer
- the reducerbase
- the result for an empty array
public double min()
public double min({double,double=>int} comparator)
comparator
- the comparator
public double max()
public double max({double,double=>int} comparator)
comparator
- the comparator
public double sum()
public int indexOfMin()
public int indexOfMax()
public int indexOfMin({double,double=>int} comparator)
comparator
- the comparator
public int indexOfMax({double,double=>int} comparator)
comparator
- the comparator
public abstract ParallelDoubleArray newArray()
public abstract int size()
public abstract int anyIndex()
public abstract double any()
java.util.NoSuchElementException
- if empty
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |