jsr166z.forkjoin
Class Ops.MinReducer<T>

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

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

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


Constructor Summary
Ops.MinReducer(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.MinReducer

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

invoke

public T invoke(T a,
                T b)