@Override public boolean equals(Object obj) { if (this.groupSymbol == null) { return super.equals(obj); } if (obj == this) { return true; } if (!(obj instanceof ElementSymbol)) { return false; } ElementSymbol other = (ElementSymbol)obj; if (other.groupSymbol == null) { return super.equals(obj); } return this.groupSymbol.equals(other.groupSymbol) && this.getShortName().equals(other.getShortName()); }
@Override public boolean equals(Object obj) { if (this.groupSymbol == null) { return super.equals(obj); } if (obj == this) { return true; } if (!(obj instanceof ElementSymbol)) { return false; } ElementSymbol other = (ElementSymbol)obj; if (other.groupSymbol == null) { return super.equals(obj); } return this.groupSymbol.equals(other.groupSymbol) && this.getShortName().equals(other.getShortName()); }
@Override public boolean equals(Object obj) { if (this.groupSymbol == null) { return super.equals(obj); } if (obj == this) { return true; } if (!(obj instanceof ElementSymbol)) { return false; } ElementSymbol other = (ElementSymbol)obj; if (other.groupSymbol == null) { return super.equals(obj); } return this.groupSymbol.equals(other.groupSymbol) && this.getShortName().equals(other.getShortName()); }