Java Swing Tutorial - Java Ellipse2D.hashCode()








Syntax

Ellipse2D.hashCode() has the following syntax.

public int hashCode()

Example

In the following code shows how to use Ellipse2D.hashCode() method.

import java.awt.geom.AffineTransform;
import java.awt.geom.Ellipse2D;
/*from  w w  w  .ja va 2  s . c  om*/
public class Main {

  public static void main(String args[]) {
    Ellipse2D.Double e = new Ellipse2D.Double(1.0,2.0,2.0,2.0);
    
    System.out.println(e.hashCode());
  }
}

The code above generates the following result.