boolean (Object o) { if (this == o) return true; if (!(o instanceof ByAnchor)) return false; ByAnchor anchor = (ByAnchor)o; if (!myElementInfo.equals(anchor.myElementInfo)) return false; if (!myAnchorInfo.equals(anchor.myAnchorInfo)) return false; if (!myAnchorProvider.equals(anchor.myAnchorProvider)) return false; return true; }