@Test public void testHashcode() { CompositeTitle t1 = new CompositeTitle(new BlockContainer()); t1.getContainer().add(new TextTitle("T1")); CompositeTitle t2 = new CompositeTitle(new BlockContainer()); t2.getContainer().add(new TextTitle("T1")); assertEquals(t1, t2); int h1 = t1.hashCode(); int h2 = t2.hashCode(); assertEquals(h1, h2); }
public BlockContainer getContainer() { return this.container; }
CompositeTitle extends Title implements Cloneable, Serializable { public BlockContainer getContainer() { return this.container; } }
CompositeTitle extends Title implements Cloneable, Serializable { public BlockContainer getContainer() { return this.container; } CompositeTitle();  CompositeTitle(BlockContainer container); }
CompositeTitle extends Title implements Cloneable, Serializable { public BlockContainer getContainer() { return this.container; } CompositeTitle();  CompositeTitle(BlockContainer container); Paint getBackgroundPaint(); void setBackgroundPaint(Paint paint); BlockContainer getContainer(); void setTitleContainer(BlockContainer container); @Override Size2D arrange(Graphics2D g2, RectangleConstraint constraint); @Override void draw(Graphics2D g2, Rectangle2D area); @Override Object draw(Graphics2D g2, Rectangle2D area, Object params); @Override boolean equals(Object obj); }
CompositeTitle extends Title implements Cloneable, Serializable { public BlockContainer getContainer() { return this.container; } CompositeTitle();  CompositeTitle(BlockContainer container); Paint getBackgroundPaint(); void setBackgroundPaint(Paint paint); BlockContainer getContainer(); void setTitleContainer(BlockContainer container); @Override Size2D arrange(Graphics2D g2, RectangleConstraint constraint); @Override void draw(Graphics2D g2, Rectangle2D area); @Override Object draw(Graphics2D g2, Rectangle2D area, Object params); @Override boolean equals(Object obj);  }