Package space.arim.dazzleconf.sorter
Class AnnotationBasedSorter
java.lang.Object
space.arim.dazzleconf.sorter.AnnotationBasedSorter
- All Implemented Interfaces:
Comparator<SortableConfigurationEntry>,ConfigurationSorter
Implementation of
ConfigurationSorter to be paired with an annotation to sort entries- Author:
- A248
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceSpecifies the order of an entry per this sorter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompare(SortableConfigurationEntry entry1, SortableConfigurationEntry entry2) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
AnnotationBasedSorter
public AnnotationBasedSorter()
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<SortableConfigurationEntry>
-