Package de.aristaflow.adept2.util
Class StringTools.NullableStringComparator
- java.lang.Object
-
- de.aristaflow.adept2.util.StringTools.NullableStringComparator
-
- All Implemented Interfaces:
Serializable
,Comparator<String>
- Enclosing class:
- StringTools
public static class StringTools.NullableStringComparator extends Object implements Comparator<String>, Serializable
A comparator for strings includingnull
. This allows for sorting string maps.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NullableStringComparator()
Creates a new comparator for strings includingnull
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(String o1, String o2)
-
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
-
-
-
-
Method Detail
-
compare
public int compare(String o1, String o2)
- Specified by:
compare
in interfaceComparator<String>
-
-