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_TRANSLATED
static Comparator<LocalizableMessage>
COMPARE_MESSAGE_UNTRANSLATED
static Comparator<PolyString>
COMPARE_POLYSTRING_TRANSLATED
static 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 int
compare(T o1, T o2)
protected abstract String
getFallback(T object)
protected abstract String
getTranslation(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
-
-