@Override
	public boolean equals(Object obj) {
        if (obj instanceof ViewerPosition) {
            ViewerPosition vp = (ViewerPosition)obj;
            return vp.index.equals(index) && vp.yOffset == yOffset;
        }
        return false;
    }
@see java.lang.Object#equals(java.lang.Object)
Ghidra/Framework/Docking/src/main/java/docking/widgets/fieldpanel/support/ViewerPosition.java