boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; JavaSwitchLabelTakenAnchor anchor = (JavaSwitchLabelTakenAnchor)o; return myLabelElement.equals(anchor.myLabelElement); }