com.yahoo.shopping
Class Max

java.lang.Object
  extended by com.yahoo.shopping.Max
All Implemented Interfaces:
AggregationFunction

public class Max
extends java.lang.Object
implements AggregationFunction

Computes the max of the values in an Integer array.

Author:
Anne Siri Korsen & Trond Řivind Eriksen.

Constructor Summary
Max()
           
 
Method Summary
 java.lang.Integer aggregate(java.lang.Integer[] hitScores)
           
 java.lang.Integer aggregate(java.lang.Integer[] hitScores, java.lang.Integer[] bottomScores)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Max

public Max()
Method Detail

aggregate

public java.lang.Integer aggregate(java.lang.Integer[] hitScores)
Specified by:
aggregate in interface AggregationFunction

aggregate

public java.lang.Integer aggregate(java.lang.Integer[] hitScores,
                                   java.lang.Integer[] bottomScores)
Specified by:
aggregate in interface AggregationFunction