Class ListOfStringsComparator
java.lang.Object
org.graylog.plugins.views.search.util.ListOfStringsComparator
- All Implemented Interfaces:
Comparator<List<String>>
Comparator of lists of strings, with following features:
- shorter lists always come before longer lists,
- if lists have the same sizes, the first non-equal element decides which list goes first,
- comparison of elements is case-insensitive.
-
Constructor Summary
Constructors -
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
-
ListOfStringsComparator
public ListOfStringsComparator()
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<List<String>>
-