Package ghidra.program.model.data
Class DataTypeObjectComparator
java.lang.Object
ghidra.program.model.data.DataTypeObjectComparator
- All Implemented Interfaces:
Comparator<Object>
DataTypeObjectComparator provides the preferred named-based comparison of data types
using the DataTypeNameComparator allowing a mix of DataType and/or String
names to be compared.-
Field Summary
Fields -
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
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
DataTypeObjectComparator
public DataTypeObjectComparator()
-
-
Method Details
-
compare
Compare two data type names- Specified by:
comparein interfaceComparator<Object>- Parameters:
o1- the firstDataTypeorStringname to be compared.o2- the secondDataTypeorStringname to be compared.- Returns:
- a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
- Throws:
IllegalArgumentException- if object types other thanDataTypeorStringare compared.
-