jsr166z.forkjoin
Class Ops.MaxReducer<T>

java.lang.Object
  extended by jsr166z.forkjoin.Ops.MaxReducer<T>
All Implemented Interfaces:
{T,T=>T}
Enclosing class:
Ops

public static final class Ops.MaxReducer<T>
extends java.lang.Object
implements {T,T=>T}

A reducer returning the maximum of two elements, using the given comparator, and treating null as less than any non-null element.


Constructor Summary
Ops.MaxReducer(java.util.Comparator<? super T> comparator)
           
 
Method Summary
 T invoke(T a, T b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ops.MaxReducer

public Ops.MaxReducer(java.util.Comparator<? super T> comparator)
Method Detail

invoke

public T invoke(T a,
                T b)