jsr166z.forkjoin
Class Ops.DoubleMaxReducer

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

public static final class Ops.DoubleMaxReducer
extends java.lang.Object
implements {double,double=>double}

A reducer returning the maximum of two double elements, using the given comparator


Constructor Summary
Ops.DoubleMaxReducer({double,double=>int} comparator)
          Creates a DoubleMaxReducer using the given comparator
 
Method Summary
 double invoke(double a, double b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ops.DoubleMaxReducer

public Ops.DoubleMaxReducer({double,double=>int} comparator)
Creates a DoubleMaxReducer using the given comparator

Method Detail

invoke

public double invoke(double a,
                     double b)