
jidefx.utils.comparator.ComparableComparator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jidefx-comparators Show documentation
Show all versions of jidefx-comparators Show documentation
JideFX Common Layer is a collection of several extend feature for JavaFX
The newest version!
/*
* @(#)ComparableComparator.java 5/19/2013
*
* Copyright 2002 - 2013 JIDE Software Inc. All rights reserved.
*/
package jidefx.utils.comparator;
import java.io.Serializable;
import java.util.Comparator;
/**
* A Comparator that compares Comparable objects. Throws ClassCastExceptions if the objects are not Comparable, or if
* they are null. Throws ClassCastException if the compareTo of both objects do not provide an inverse result of each
* other as per the Comparable javadoc.
If both objects are null, they will be treated as equal. If one is null and
* the other is not, the null value will be treated as smaller than non-null value.
*
* @author [email protected]
* @author JIDE Software
*/
public class ComparableComparator implements Comparator
© 2015 - 2025 Weber Informatics LLC | Privacy Policy