Example usage for java.awt Shape hashCode

List of usage examples for java.awt Shape hashCode

Introduction

In this page you can find the example usage for java.awt Shape hashCode.

Prototype

@HotSpotIntrinsicCandidate
public native int hashCode();

Source Link

Document

Returns a hash code value for the object.

Usage

From source file:org.eclipse.birt.chart.device.svg.SVGGraphics2D.java

/**
 * @param clip//  w w  w .j  a v  a  2s  .c  om
 *            The clip to set.
 */
public void setClip(Shape clip) {
    this.clip = clip;
    if (clip != null) {
        Element clipPath = dom.createElement("clipPath"); //$NON-NLS-1$
        clipPath.setAttribute("id", "clip" + clip.hashCode()); //$NON-NLS-1$ //$NON-NLS-2$
        clipPath.appendChild(createGeneralPath(clip));
        definitions.appendChild(clipPath);
    }

}