boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; YAMLKeyNavigationItem item = (YAMLKeyNavigationItem)o; return myPosition == item.myPosition && myName.equals(item.myName) && myFile.equals(item.myFile); }