@Override public boolean equals(Object obj) { if (this == obj) return true; if (!super.equals(obj)) return false; if (getClass() != obj.getClass()) return false; TextElement other = (TextElement) obj; if (java.lang.Float.floatToIntBits(dir) != java.lang.Float .floatToIntBits(other.dir)) return false; if (font == null) { if (other.font != null) return false; } else if (!font.equals(other.font)) return false; if (java.lang.Float.floatToIntBits(fontSize) != java.lang.Float .floatToIntBits(other.fontSize)) return false; if (text == null) { if (other.text != null) return false; } else if (!text.equals(other.text)) return false; return java.lang.Float.floatToIntBits(widthOfSpace) == java.lang.Float .floatToIntBits(other.widthOfSpace); }
if (font != null ? !font.equals(that.font) : that.font != null)
@Override public void setFont(PDFont font, float fontSize) throws IOException { if (!(compare(this.fontSize, fontSize) == 0) || !font.equals(this.font)) { this.fontSize = fontSize; this.font = font; super.setFont(font, fontSize); } }
if (font != null ? !font.equals(that.font) : that.font != null)
if (font != null ? !font.equals(that.font) : that.font != null)