Package ghidra.util.datastruct
Class CaseInsensitiveDuplicateStringComparator
- java.lang.Object
-
- ghidra.util.datastruct.CaseInsensitiveDuplicateStringComparator
-
- All Implemented Interfaces:
java.util.Comparator<java.lang.String>
public class CaseInsensitiveDuplicateStringComparator extends java.lang.Object implements java.util.Comparator<java.lang.String>
Comparator for sorting Strings in a case insensitive way except that case insensitive duplicates are then sub-sorted by reverse case so that lower case is before upper case. Example: the strings "abc", "bob", "Bob", "zzz" would always sort as shown. In a normal case insensitive sort, the "bob" and "Bob" order would be arbitrary.
-
-
Constructor Summary
Constructors Constructor Description CaseInsensitiveDuplicateStringComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(java.lang.String name1, java.lang.String name2)
-