Package org.ametys.runtime.model
Class I18nizableTextModelItemComparator
- java.lang.Object
-
- org.ametys.runtime.model.I18nizableTextModelItemComparator
-
- All Implemented Interfaces:
Comparator<ModelItem>
public class I18nizableTextModelItemComparator extends Object implements Comparator<ModelItem>
Comparator of model items. Compare the model items' by their labels using the givenComparator
ofI18nizableText
-
-
Field Summary
Fields Modifier and Type Field Description private Comparator<I18nizableText>
_labelComparator
-
Constructor Summary
Constructors Constructor Description I18nizableTextModelItemComparator(Comparator<I18nizableText> labelComparator)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(ModelItem item1, ModelItem item2)
-
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
-
_labelComparator
private final Comparator<I18nizableText> _labelComparator
-
-
Constructor Detail
-
I18nizableTextModelItemComparator
public I18nizableTextModelItemComparator(Comparator<I18nizableText> labelComparator)
Constructor- Parameters:
labelComparator
- aComparator
ofI18nizableText
-
-