@Override
	public int compareTo(ProgramLocation other) {
		if (other == this) {
			return 0;
		}
		int result = ProgramLocationComparator.INSTANCE.compare(this, other);
		if (result == 0) {
			result = row - other.row;
			if (result == 0) {
				result = col - other.col;
				if (result == 0) {
					result = charOffset - other.charOffset;
				}
			}
		}
		return result;
	}
Get the program location for the given program and save state object.

@param program the program for the location
@param saveState the state to restore
@return the restored program location
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/util/ProgramLocation.java