com.github.brunothg.swing2.utils.DefaultComparator Maven / Gradle / Ivy
package com.github.brunothg.swing2.utils;
import java.util.Comparator;
/**
* compares the object's string representation
*
* @author Marvin Bruns
*
* @param
* Class Type
*/
public class DefaultComparator implements Comparator {
@Override
public int compare(T o1, T o2) {
return o1.toString().compareTo(o2.toString());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy