Example usage for org.jfree.util ObjectUtilities hashCode

List of usage examples for org.jfree.util ObjectUtilities hashCode

Introduction

In this page you can find the example usage for org.jfree.util ObjectUtilities hashCode.

Prototype

public static int hashCode(final Object object) 

Source Link

Document

Returns a hash code for an object, or zero if the object is null.

Usage

From source file:org.jfree.experimental.chart.plot.dial.DialPlot.java

/**
 * Returns a hash code for this instance.
 * /*from   w w  w .j av a 2  s  .c o  m*/
 * @return The hash code.
 */
public int hashCode() {
    int result = 193;
    result = 37 * result + ObjectUtilities.hashCode(this.background);
    result = 37 * result + ObjectUtilities.hashCode(this.cap);
    result = 37 * result + this.dialFrame.hashCode();
    long temp = Double.doubleToLongBits(this.viewX);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    temp = Double.doubleToLongBits(this.viewY);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    temp = Double.doubleToLongBits(this.viewW);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    temp = Double.doubleToLongBits(this.viewH);
    result = 37 * result + (int) (temp ^ (temp >>> 32));
    return result;
}