Java Swing Tutorial - Java Ellipse2D.equals(Object obj)








Syntax

Ellipse2D.equals(Object obj) has the following syntax.

public boolean equals(Object obj)

Example

In the following code shows how to use Ellipse2D.equals(Object obj) method.

/*from w w w .java 2 s  .c o m*/
import java.awt.geom.Ellipse2D;
import java.awt.geom.Point2D;

public class Main {

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