boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; TextWithMnemonic mnemonic = (TextWithMnemonic)o; return mnemonicIndex == mnemonic.mnemonicIndex && text.equals(mnemonic.text) && mnemonicSuffix.equals(mnemonic.mnemonicSuffix); }