List of usage examples for org.jfree.data.function PolynomialFunction2D hashCode
@Override public int hashCode()
From source file:org.jfree.data.function.PolynomialFunction2DTest.java
/** * Objects that are equal should have the same hash code otherwise FindBugs * will tell on us.../*from ww w . j a va 2 s .c o m*/ */ @Test public void testHashCode() { PolynomialFunction2D f1 = new PolynomialFunction2D(new double[] { 1.0, 2.0 }); PolynomialFunction2D f2 = new PolynomialFunction2D(new double[] { 1.0, 2.0 }); assertEquals(f1.hashCode(), f2.hashCode()); }