@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; final ILexFile other = (ILexFile) obj; if (desc == null) { if(other.getDescription() != null) return false; } else if (!desc.equals(other.getDescription())) return false; if (name == null) { if (other.getName() != null) return false; } else if (!name.equals(other.getName())) return false; if (num != other.getNumber()) return false; if (pos == null) { if (other.getPOS() != null) return false; } else if (!pos.equals(other.getPOS())) return false; return true; }