Example usage for org.jfree.data.function PowerFunction2D hashCode

List of usage examples for org.jfree.data.function PowerFunction2D hashCode

Introduction

In this page you can find the example usage for org.jfree.data.function PowerFunction2D hashCode.

Prototype

@Override
public int hashCode() 

Source Link

Document

Returns a hash code for this instance.

Usage

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

/**
 * Objects that are equal should have the same hash code otherwise FindBugs
 * will tell on us...//from  w w w .java 2  s  .  c  om
 */
@Test
public void testHashCode() {
    PowerFunction2D f1 = new PowerFunction2D(1.0, 2.0);
    PowerFunction2D f2 = new PowerFunction2D(1.0, 2.0);
    assertEquals(f1.hashCode(), f2.hashCode());
}