@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; ExtJwnlSensedWord other = (ExtJwnlSensedWord) obj; if (wordObj == null) { if (other.wordObj != null) return false; } else if (!wordObj.equals(other.wordObj)) return false; return true; }
/** * Returns all the pointers of the synset that contains this word whose source is this word. */ public List<Pointer> getPointers() { List<Pointer> result = new ArrayList<>(0); for (Pointer pointer : getSynset().getPointers()) { if (this.equals(pointer.getSource())) { result.add(pointer); } } return result; }
/** * Returns all the pointers of the synset that contains this word whose source is this word. */ public List<Pointer> getPointers() { List<Pointer> result = new ArrayList<>(0); for (Pointer pointer : getSynset().getPointers()) { if (this.equals(pointer.getSource())) { result.add(pointer); } } return result; }