Package ghidra.program.util
Class ProgramLocationComparator
- java.lang.Object
-
- ghidra.program.util.ProgramLocationComparator
-
- All Implemented Interfaces:
java.util.Comparator<ProgramLocation>
public class ProgramLocationComparator extends java.lang.Object implements java.util.Comparator<ProgramLocation>
A comparator for the common fields ofProgramLocationThis comparator only compares the program, address, and class of the program location. To compare at greater granularity, invoke the
ProgramLocation.compareTo(ProgramLocation)method, or use the natural ordering. Each particular type of location uses this comparator, and then compares the more detailed fields, if necessary. If this comparator indicates equality, then the two locations are definitely of the same class.
-
-
Field Summary
Fields Change Modifier and Type Field Description NEW static ProgramLocationComparatorINSTANCEThe singleton instanceREMOVED instance() (Removed)
-
Method Summary
All Methods Instance Methods Concrete Methods Change Modifier and Type Method Description intcompare(ProgramLocation loc1, ProgramLocation loc2)
-
-
-
Field Detail
Method Detail
-
compare
public int compare(ProgramLocation loc1, ProgramLocation loc2)
- Specified by:
comparein interfacejava.util.Comparator<ProgramLocation>
-
-