Package com.evolveum.midpoint.web.util
Class LocalizationMessageComparator<T>
java.lang.Object
com.evolveum.midpoint.web.util.LocalizationMessageComparator<T>
- All Implemented Interfaces:
Comparator<T>
Created by Viliam Repan (lazyman).
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Comparator<LocalizableMessage>
static final Comparator<LocalizableMessage>
static final Comparator<PolyString>
static final Comparator<PolyString>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
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 Details
-
COMPARE_MESSAGE_TRANSLATED
-
COMPARE_MESSAGE_UNTRANSLATED
-
COMPARE_POLYSTRING_TRANSLATED
-
COMPARE_POLYSTRING_UNTRANSLATED
-
-
Constructor Details
-
LocalizationMessageComparator
public LocalizationMessageComparator(boolean translate)
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<T>
-
getFallback
-
getTranslation
-