/** * It is assumed that IndexWordSets will only be created by calling * {@link net.sf.extjwnl.dictionary.Dictionary#lookupAllIndexWords Dictionary.lookupAllIndexWords}, * so all IndexWordSets with the same lemma should be equal. */ @Override public boolean equals(Object object) { return (object instanceof IndexWordSet) && getLemma().equals(((IndexWordSet) object).getLemma()); }
/** * It is assumed that IndexWordSets will only be created by calling * {@link net.sf.extjwnl.dictionary.Dictionary#lookupAllIndexWords Dictionary.lookupAllIndexWords}, * so all IndexWordSets with the same lemma should be equal. */ @Override public boolean equals(Object object) { return (object instanceof IndexWordSet) && getLemma().equals(((IndexWordSet) object).getLemma()); }