Package com.evolveum.midpoint.web.util
Class LocalizationMessageComparator<T>
- java.lang.Object
-
- com.evolveum.midpoint.web.util.LocalizationMessageComparator<T>
-
- All Implemented Interfaces:
Comparator<T>
public abstract class LocalizationMessageComparator<T> extends Object implements Comparator<T>
Created by Viliam Repan (lazyman).
-
-
Field Summary
Fields Modifier and Type Field Description static Comparator<LocalizableMessage>COMPARE_MESSAGE_TRANSLATEDstatic Comparator<LocalizableMessage>COMPARE_MESSAGE_UNTRANSLATEDstatic Comparator<PolyString>COMPARE_POLYSTRING_TRANSLATEDstatic Comparator<PolyString>COMPARE_POLYSTRING_UNTRANSLATED
-
Constructor Summary
Constructors Constructor Description LocalizationMessageComparator(boolean translate)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intcompare(T o1, T o2)protected abstract StringgetFallback(T object)protected abstract StringgetTranslation(T object)-
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
-
COMPARE_MESSAGE_TRANSLATED
public static final Comparator<LocalizableMessage> COMPARE_MESSAGE_TRANSLATED
-
COMPARE_MESSAGE_UNTRANSLATED
public static final Comparator<LocalizableMessage> COMPARE_MESSAGE_UNTRANSLATED
-
COMPARE_POLYSTRING_TRANSLATED
public static final Comparator<PolyString> COMPARE_POLYSTRING_TRANSLATED
-
COMPARE_POLYSTRING_UNTRANSLATED
public static final Comparator<PolyString> COMPARE_POLYSTRING_UNTRANSLATED
-
-