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;
/*w  w w . j ava 2s .c o m*/
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());
  }
}




















Home »
  Java Tutorial »
    java.awt.geom »




AffineTransform
Arc2D
Area
CubicCurve2D
Ellipse2D
GeneralPath