Package org.swisspush.gateleen.core.util
Class CollectionContentComparator
- java.lang.Object
-
- org.swisspush.gateleen.core.util.CollectionContentComparator
-
- All Implemented Interfaces:
java.util.Comparator<java.lang.String>
public class CollectionContentComparator extends java.lang.Object implements java.util.Comparator<java.lang.String>This comparator allows you to sort a list to be compliant with the natural ordering of content returned by the storage. This may help you to create merged / manual created arrays for collections respecting the order as the storage does.- Author:
- https://github.com/ljucam [Mario Aerni]
-
-
Constructor Summary
Constructors Constructor Description CollectionContentComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(java.lang.String c1, java.lang.String c2)
-