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

org.psjava.ds.geometry.PointByXComparator Maven / Gradle / Ivy

There is a newer version: 0.1.19
Show newest version
package org.psjava.ds.geometry;

import java.util.Comparator;

public class PointByXComparator {

	public static  Comparator> create(final Comparator comaprator) {
		return new Comparator>() {
			@Override
			public int compare(Point2D p1, Point2D p2) {
				return comaprator.compare(p1.x(), p2.x());
			}
		};
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy