Package org.ametys.core.util
Class I18nizableTextComparator
- java.lang.Object
-
- org.ametys.core.util.I18nizableTextComparator
-
- All Implemented Interfaces:
Comparator<I18nizableText>
public class I18nizableTextComparator extends Object implements Comparator<I18nizableText>
Sort I18nizableText with their translation
-
-
Field Summary
Fields Modifier and Type Field Description private I18nUtils
_i18nUtils
-
Constructor Summary
Constructors Constructor Description I18nizableTextComparator(I18nUtils i18nUtils)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(I18nizableText t1, I18nizableText t2)
-
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, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Field Detail
-
_i18nUtils
private I18nUtils _i18nUtils
-
-
Constructor Detail
-
I18nizableTextComparator
public I18nizableTextComparator(I18nUtils i18nUtils)
Constructor.- Parameters:
i18nUtils
- theI18nUtils
for actual translations.
-
-
Method Detail
-
compare
public int compare(I18nizableText t1, I18nizableText t2)
- Specified by:
compare
in interfaceComparator<I18nizableText>
-
-