make all Comparators Serializable

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130624 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Morgan James Delagrange 2002-03-01 19:18:49 +00:00
parent 410d547028
commit 520dc72714
2 changed files with 7 additions and 5 deletions

View File

@ -54,8 +54,9 @@ package org.apache.commons.collections.comparators;
* <http://www.apache.org/>.
*/
import java.util.Comparator;
import java.io.Serializable;
import java.lang.Comparable;
import java.util.Comparator;
/**
* A Comparator that compares Comparable objects.
@ -68,9 +69,9 @@ import java.lang.Comparable;
* of SortedSet and SortedMap.
*
* @author bayard@generationjava.com
* @version $Id: ComparableComparator.java,v 1.2 2002/02/28 18:06:39 morgand Exp $
* @version $Id: ComparableComparator.java,v 1.3 2002/03/01 19:18:49 morgand Exp $
*/
public class ComparableComparator implements Comparator {
public class ComparableComparator implements Comparator,Serializable {
public ComparableComparator() {
}

View File

@ -54,15 +54,16 @@ package org.apache.commons.collections.comparators;
* <http://www.apache.org/>.
*/
import java.io.Serializable;
import java.util.Comparator;
/**
* Reverses the order of another comparator.
*
* @author bayard@generationjava.com
* @version $Id: ReverseComparator.java,v 1.4 2002/03/01 19:00:33 morgand Exp $
* @version $Id: ReverseComparator.java,v 1.5 2002/03/01 19:18:49 morgand Exp $
*/
public class ReverseComparator implements Comparator {
public class ReverseComparator implements Comparator,Serializable {
private Comparator comparator;