Package ghidra.program.model.data
Class CompositeInternal.ComponentComparator
- java.lang.Object
-
- ghidra.program.model.data.CompositeInternal.ComponentComparator
-
- All Implemented Interfaces:
java.util.Comparator<DataTypeComponent>
- Enclosing interface:
- CompositeInternal
public static class CompositeInternal.ComponentComparator extends java.lang.Object implements java.util.Comparator<DataTypeComponent>
ComponentComparator
provides ability to compare two DataTypeComponent objects based upon their ordinal. Intended to be used to sort components based upon ordinal.
-
-
Field Summary
Fields Modifier and Type Field Description static CompositeInternal.ComponentComparator
INSTANCE
-
Constructor Summary
Constructors Constructor Description ComponentComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(DataTypeComponent dtc1, DataTypeComponent dtc2)
-
-
-
Field Detail
-
INSTANCE
public static final CompositeInternal.ComponentComparator INSTANCE
-
-
Method Detail
-
compare
public int compare(DataTypeComponent dtc1, DataTypeComponent dtc2)
- Specified by:
compare
in interfacejava.util.Comparator<DataTypeComponent>
-
-