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

org.psjava.util.ReversedComparator Maven / Gradle / Ivy

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

import java.util.Comparator;

public class ReversedComparator {

	public static  Comparator wrap(final Comparator original) {
		return new Comparator() {
			@Override
			public int compare(T o1, T o2) {
				return original.compare(o2, o1);
			}
		};
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy