@Test public void testHashCode() { DialBackground b1 = new DialBackground(Color.RED); DialBackground b2 = new DialBackground(Color.RED); assertEquals(b1, b2); int h1 = b1.hashCode(); int h2 = b2.hashCode(); assertEquals(h1, h2); }
@Override public int hashCode() { int result = 193; result = 37 * result + HashUtilities.hashCodeForPaint(this.paint); result = 37 * result + this.gradientPaintTransformer.hashCode(); return result; }
DialBackground extends AbstractDialLayer implements DialLayer,
        Cloneable, PublicCloneable, Serializable { @Override public int hashCode() { int result = 193; result = 37 * result + HashUtilities.hashCodeForPaint(this.paint); result = 37 * result + this.gradientPaintTransformer.hashCode(); return result; } }
DialBackground extends AbstractDialLayer implements DialLayer,
        Cloneable, PublicCloneable, Serializable { @Override public int hashCode() { int result = 193; result = 37 * result + HashUtilities.hashCodeForPaint(this.paint); result = 37 * result + this.gradientPaintTransformer.hashCode(); return result; } DialBackground();  DialBackground(Paint paint); }
DialBackground extends AbstractDialLayer implements DialLayer,
        Cloneable, PublicCloneable, Serializable { @Override public int hashCode() { int result = 193; result = 37 * result + HashUtilities.hashCodeForPaint(this.paint); result = 37 * result + this.gradientPaintTransformer.hashCode(); return result; } DialBackground();  DialBackground(Paint paint); Paint getPaint(); void setPaint(Paint paint); GradientPaintTransformer getGradientPaintTransformer(); void setGradientPaintTransformer(GradientPaintTransformer t); @Override boolean isClippedToWindow(); @Override void draw(Graphics2D g2, DialPlot plot, Rectangle2D frame,
            Rectangle2D view); @Override boolean equals(Object obj); @Override int hashCode(); @Override Object clone(); }
DialBackground extends AbstractDialLayer implements DialLayer,
        Cloneable, PublicCloneable, Serializable { @Override public int hashCode() { int result = 193; result = 37 * result + HashUtilities.hashCodeForPaint(this.paint); result = 37 * result + this.gradientPaintTransformer.hashCode(); return result; } DialBackground();  DialBackground(Paint paint); Paint getPaint(); void setPaint(Paint paint); GradientPaintTransformer getGradientPaintTransformer(); void setGradientPaintTransformer(GradientPaintTransformer t); @Override boolean isClippedToWindow(); @Override void draw(Graphics2D g2, DialPlot plot, Rectangle2D frame,
            Rectangle2D view); @Override boolean equals(Object obj); @Override int hashCode(); @Override Object clone();  }