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