/** * Are the two objects equal? * * @param o object to compare * @return true when objects are equal * @since 1.8.0 */ @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof SymbolInfo)) { return false; } SymbolInfo that = (SymbolInfo) o; if (circle != null ? !circle.equals(that.circle) : that.circle != null) { return false; } if (image != null ? !image.equals(that.image) : that.image != null) { return false; } if (rect != null ? !rect.equals(that.rect) : that.rect != null) { return false; } return true; }