All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.dagere.kopeme.measuresummarizing.MaximumSummarizer Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
package de.dagere.kopeme.measuresummarizing;

import java.util.List;

/**
 * Returns the maximum of the List of measures
 * @author dagere
 */
public class MaximumSummarizer implements MeasureSummarizer {

	/**
	 * Returns the maximum of the List of measures
	 * @return Maximum of the liste of measures
	 */
	@Override
	public long getValue(List values) {
		long max = 0;
		for (Long l : values) {
			if (l > max)
				max = l;
		}
		return max;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy