@Test public void testHashCode() { Font font1 = new Font("SansSerif", Font.PLAIN, 12); MarkerAxisBand a1 = new MarkerAxisBand(null, 1.0, 1.0, 1.0, 1.0, font1); MarkerAxisBand a2 = new MarkerAxisBand(null, 1.0, 1.0, 1.0, 1.0, font1); assertEquals(a1, a2); int h1 = a1.hashCode(); int h2 = a2.hashCode(); assertEquals(h1, h2); }
@Override public int hashCode() { int result = 37; result = 19 * result + this.font.hashCode(); result = 19 * result + this.markers.hashCode(); return result; }
MarkerAxisBand implements Serializable { @Override public int hashCode() { int result = 37; result = 19 * result + this.font.hashCode(); result = 19 * result + this.markers.hashCode(); return result; } }
MarkerAxisBand implements Serializable { @Override public int hashCode() { int result = 37; result = 19 * result + this.font.hashCode(); result = 19 * result + this.markers.hashCode(); return result; } MarkerAxisBand(NumberAxis axis,
                          double topOuterGap, double topInnerGap,
                          double bottomOuterGap, double bottomInnerGap,
                          Font font); }
MarkerAxisBand implements Serializable { @Override public int hashCode() { int result = 37; result = 19 * result + this.font.hashCode(); result = 19 * result + this.markers.hashCode(); return result; } MarkerAxisBand(NumberAxis axis,
                          double topOuterGap, double topInnerGap,
                          double bottomOuterGap, double bottomInnerGap,
                          Font font); void addMarker(IntervalMarker marker); double getHeight(Graphics2D g2); void draw(Graphics2D g2, Rectangle2D plotArea, Rectangle2D dataArea,
                     double x, double y); @Override boolean equals(Object obj); @Override int hashCode(); }
MarkerAxisBand implements Serializable { @Override public int hashCode() { int result = 37; result = 19 * result + this.font.hashCode(); result = 19 * result + this.markers.hashCode(); return result; } MarkerAxisBand(NumberAxis axis,
                          double topOuterGap, double topInnerGap,
                          double bottomOuterGap, double bottomInnerGap,
                          Font font); void addMarker(IntervalMarker marker); double getHeight(Graphics2D g2); void draw(Graphics2D g2, Rectangle2D plotArea, Rectangle2D dataArea,
                     double x, double y); @Override boolean equals(Object obj); @Override int hashCode();  }