@Test public void testHashcode() { TextTitle t1 = new TextTitle(); TextTitle t2 = new TextTitle(); assertEquals(t1, t2); int h1 = t1.hashCode(); int h2 = t2.hashCode(); assertEquals(h1, h2); }
@Override public int hashCode() { int result = 193; result = 37 * result + ObjectUtilities.hashCode(this.position); result = 37 * result + ObjectUtilities.hashCode(this.horizontalAlignment); result = 37 * result + ObjectUtilities.hashCode(this.verticalAlignment); return result; }
Title extends AbstractBlock implements Block, Cloneable, Serializable { @Override public int hashCode() { int result = 193; result = 37 * result + ObjectUtilities.hashCode(this.position); result = 37 * result + ObjectUtilities.hashCode(this.horizontalAlignment); result = 37 * result + ObjectUtilities.hashCode(this.verticalAlignment); return result; } }
Title extends AbstractBlock implements Block, Cloneable, Serializable { @Override public int hashCode() { int result = 193; result = 37 * result + ObjectUtilities.hashCode(this.position); result = 37 * result + ObjectUtilities.hashCode(this.horizontalAlignment); result = 37 * result + ObjectUtilities.hashCode(this.verticalAlignment); return result; } protected  Title(); protected  Title(RectangleEdge position,
                    HorizontalAlignment horizontalAlignment,
                    VerticalAlignment verticalAlignment); protected  Title(RectangleEdge position,
                    HorizontalAlignment horizontalAlignment,
                    VerticalAlignment verticalAlignment,
                    RectangleInsets padding); }
Title extends AbstractBlock implements Block, Cloneable, Serializable { @Override public int hashCode() { int result = 193; result = 37 * result + ObjectUtilities.hashCode(this.position); result = 37 * result + ObjectUtilities.hashCode(this.horizontalAlignment); result = 37 * result + ObjectUtilities.hashCode(this.verticalAlignment); return result; } protected  Title(); protected  Title(RectangleEdge position,
                    HorizontalAlignment horizontalAlignment,
                    VerticalAlignment verticalAlignment); protected  Title(RectangleEdge position,
                    HorizontalAlignment horizontalAlignment,
                    VerticalAlignment verticalAlignment,
                    RectangleInsets padding); boolean isVisible(); void setVisible(boolean visible); RectangleEdge getPosition(); void setPosition(RectangleEdge position); HorizontalAlignment getHorizontalAlignment(); void setHorizontalAlignment(HorizontalAlignment alignment); VerticalAlignment getVerticalAlignment(); void setVerticalAlignment(VerticalAlignment alignment); boolean getNotify(); void setNotify(boolean flag); @Override abstract void draw(Graphics2D g2, Rectangle2D area); @Override Object clone(); void addChangeListener(TitleChangeListener listener); void removeChangeListener(TitleChangeListener listener); @Override boolean equals(Object obj); @Override int hashCode(); }
Title extends AbstractBlock implements Block, Cloneable, Serializable { @Override public int hashCode() { int result = 193; result = 37 * result + ObjectUtilities.hashCode(this.position); result = 37 * result + ObjectUtilities.hashCode(this.horizontalAlignment); result = 37 * result + ObjectUtilities.hashCode(this.verticalAlignment); return result; } protected  Title(); protected  Title(RectangleEdge position,
                    HorizontalAlignment horizontalAlignment,
                    VerticalAlignment verticalAlignment); protected  Title(RectangleEdge position,
                    HorizontalAlignment horizontalAlignment,
                    VerticalAlignment verticalAlignment,
                    RectangleInsets padding); boolean isVisible(); void setVisible(boolean visible); RectangleEdge getPosition(); void setPosition(RectangleEdge position); HorizontalAlignment getHorizontalAlignment(); void setHorizontalAlignment(HorizontalAlignment alignment); VerticalAlignment getVerticalAlignment(); void setVerticalAlignment(VerticalAlignment alignment); boolean getNotify(); void setNotify(boolean flag); @Override abstract void draw(Graphics2D g2, Rectangle2D area); @Override Object clone(); void addChangeListener(TitleChangeListener listener); void removeChangeListener(TitleChangeListener listener); @Override boolean equals(Object obj); @Override int hashCode(); static final RectangleEdge DEFAULT_POSITION; static final HorizontalAlignment DEFAULT_HORIZONTAL_ALIGNMENT; static final VerticalAlignment DEFAULT_VERTICAL_ALIGNMENT; static final RectangleInsets DEFAULT_PADDING; public boolean visible; }