jsr166z.forkjoin
Class Ops.IntMaxReducer

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

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

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


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

Constructor Detail

Ops.IntMaxReducer

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

Method Detail

invoke

public int invoke(int a,
                  int b)