com.jparams.store.index.reducer.MinReducer Maven / Gradle / Ivy
package com.jparams.store.index.reducer;
import java.util.Comparator;
import java.util.function.Function;
/**
* Reduces all elements for a key retaining the min value
*
* @param key type
* @param value type
*/
public class MinReducer extends ComparingReducer
{
public > MinReducer(final Function valueProvider, final boolean nullGreater)
{
super(valueProvider, nullGreater);
}
public MinReducer(final Function valueProvider, final Comparator comparator, final boolean nullGreater)
{
super(valueProvider, comparator, nullGreater);
}
@Override
int compare(final Object value1, final Object value2, final Comparator
© 2015 - 2025 Weber Informatics LLC | Privacy Policy