Package com.jalios.util
Class MultiComparator
- java.lang.Object
-
- com.jalios.util.MultiComparator
-
- All Implemented Interfaces:
java.util.Comparator
public class MultiComparator extends java.lang.Object implements java.util.Comparator
This class is comparator which combines an array of comparator.- Author:
- Olivier Dedieu
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Comparator[]
array
-
Constructor Summary
Constructors Constructor Description MultiComparator(java.util.Comparator[] array)
MultiComparator(java.util.Comparator cmp1, java.util.Comparator cmp2)
MultiComparator(java.util.Comparator cmp1, java.util.Comparator cmp2, java.util.Comparator cmp3)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(java.lang.Object o1, java.lang.Object o2)
-
-
-
Constructor Detail
-
MultiComparator
public MultiComparator(java.util.Comparator[] array)
-
MultiComparator
public MultiComparator(java.util.Comparator cmp1, java.util.Comparator cmp2)
-
MultiComparator
public MultiComparator(java.util.Comparator cmp1, java.util.Comparator cmp2, java.util.Comparator cmp3)
-
-