Example usage for org.jfree.chart HashUtilities hashCodeForDoubleArray

List of usage examples for org.jfree.chart HashUtilities hashCodeForDoubleArray

Introduction

In this page you can find the example usage for org.jfree.chart HashUtilities hashCodeForDoubleArray.

Prototype

public static int hashCodeForDoubleArray(double[] a) 

Source Link

Document

Returns a hash code for a double[] instance.

Usage

From source file:org.jfree.data.function.PolynomialFunction2D.java

/**
 * Returns a hash code for this instance.
 *
 * @return A hash code./*from w  w  w  . j  av a 2s.com*/
 */
@Override
public int hashCode() {
    return HashUtilities.hashCodeForDoubleArray(this.coefficients);
}

From source file:vteaexploration.XYPolygonAnnotation.java

/**
 * Returns a hash code for this instance.
 *
 * @return A hash code./* w  ww .ja  v a  2 s  .c  o  m*/
 */
public int hashCode() {
    int result = 193;
    result = 37 * result + HashUtilities.hashCodeForDoubleArray(this.polygon);
    result = 37 * result + HashUtilities.hashCodeForPaint(this.fillPaint);
    result = 37 * result + HashUtilities.hashCodeForPaint(this.outlinePaint);
    if (this.stroke != null) {
        result = 37 * result + this.stroke.hashCode();
    }
    return result;
}