Package io.bdeploy.common.util
Class SortOneAsLastComparator
java.lang.Object
io.bdeploy.common.util.SortOneAsLastComparator
- All Implemented Interfaces:
Serializable,Comparator<String>
A comparator that ensures that a given string is put at the end. All others are sorted lexicographically.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSortOneAsLastComparator(String masterName) Creates a new comparator that sorts the given string as last one -
Method Summary
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
-
SortOneAsLastComparator
Creates a new comparator that sorts the given string as last one
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<String>
-