com.jidesoft.comparator.CharSequenceComparator Maven / Gradle / Ivy
/*
* @(#)CharSequenceComparator.java 7/15/2008
*
* Copyright 2002 - 2008 JIDE Software Inc. All rights reserved.
*
*/
package com.jidesoft.comparator;
import java.io.Serializable;
import java.util.Comparator;
/**
* A Comparator that compares CharSequence objects (including String and StringBuffer as both extend CharSequence.
* Throws ClassCastExceptions if the objects are not CharSequence, or if they are null. 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 then
* non-null value.
*/
public class CharSequenceComparator implements Comparator
© 2015 - 2025 Weber Informatics LLC | Privacy Policy