@Override
    public boolean equals(Object obj) {
        if(obj == null) {
            return false;
        }
        if(!(obj instanceof AddressLabelPair)) {
            return false;
        }
        
        AddressLabelPair objPair = (AddressLabelPair) obj;

        // must have both labels being non-null
        return SystemUtilities.isEqual( objPair.label, this.label ) && 
        	objPair.addr.equals(this.addr);
    }
@see java.lang.Object#equals(java.lang.Object)
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/symbol/AddressLabelPair.java