com.jalios.util
Class MultiComparator

java.lang.Object
  extended by com.jalios.util.MultiComparator
All Implemented Interfaces:
Comparator

public class MultiComparator
extends Object
implements Comparator

This class is comparator which combines an array of comparator.

Version:
$Revision: 17861 $
Author:
Olivier Dedieu

Field Summary
protected  Comparator[] array
           
static String REVISION
           
 
Constructor Summary
MultiComparator(Comparator[] array)
           
MultiComparator(Comparator cmp1, Comparator cmp2)
           
MultiComparator(Comparator cmp1, Comparator cmp2, Comparator cmp3)
           
 
Method Summary
 int compare(Object o1, Object o2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Field Detail

REVISION

public static final String REVISION
See Also:
Constant Field Values

array

protected Comparator[] array
Constructor Detail

MultiComparator

public MultiComparator(Comparator[] array)

MultiComparator

public MultiComparator(Comparator cmp1,
                       Comparator cmp2)

MultiComparator

public MultiComparator(Comparator cmp1,
                       Comparator cmp2,
                       Comparator cmp3)
Method Detail

compare

public int compare(Object o1,
                   Object o2)
Specified by:
compare in interface Comparator


Copyright © 2001-2010 Jalios SA. All Rights Reserved.