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