Margins implements TagParameters { @Override public boolean equals(final Object o) { if (this == o) { return true; } if (!(o instanceof Margins)) { return false; } final Margins other = (Margins) o; return EqualityUtil.equal(this.top, other.top) && EqualityUtil.equal(this.right, other.right) && EqualityUtil.equal(this.bottom, other.bottom) && EqualityUtil.equal(this.left, other.left) && EqualityUtil.equal(this.all, other.all); } Margins(final Length all, final Length top, final Length right, final Length bottom,
            final Length left); boolean areVoid(); @Override void appendXMLContent(final XMLUtil util, final Appendable appendable); @Override boolean equals(final Object o); @Override String toString(); @Override int hashCode(); MarginsBuilder toBuilder();  }
@Test public final void testEquals() { final Margins margins = new MarginsBuilder().top(MarginsTest.TEN_PT).right(SimpleLength.pt(11.0)) .bottom(SimpleLength.pt(12.0)).left(SimpleLength.pt(13.0)).build(); Assert.assertNotEquals(1, margins); Assert.assertNotEquals(1, margins); Assert.assertEquals(margins, margins); final Margins margins2 = new MarginsBuilder().top(MarginsTest.TEN_PT).right(SimpleLength.pt(11.0)) .bottom(SimpleLength.pt(120.0)).left(SimpleLength.pt(13.0)).build(); Assert.assertNotEquals(margins2, margins); final Margins margins3 = new MarginsBuilder().top(MarginsTest.TEN_PT).right(SimpleLength.pt(11.0)) .bottom(SimpleLength.pt(12.0)).left(SimpleLength.pt(13.0)).build(); Assert.assertEquals(margins3, margins); Assert.assertEquals(margins3.hashCode(), margins3.hashCode()); }