
org.mydotey.quantile.value.LongComparator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quantile-estimator Show documentation
Show all versions of quantile-estimator Show documentation
quantile algorithms' implementations for stream data
The newest version!
package org.mydotey.quantile.value;
import java.util.Comparator;
/**
* @author koqizhao
*
* Apr 1, 2018
*/
public class LongComparator implements Comparator {
public static final LongComparator DEFAULT = new LongComparator();
@Override
public int compare(Long o1, Long o2) {
return o1 > o2 ? 1 : (o1 == o2 ? 0 : -1);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy