Example usage for org.jfree.data.function PolynomialFunction2D equals

List of usage examples for org.jfree.data.function PolynomialFunction2D equals

Introduction

In this page you can find the example usage for org.jfree.data.function PolynomialFunction2D equals.

Prototype

@Override
public boolean equals(Object obj) 

Source Link

Document

Tests this function for equality with an arbitrary object.

Usage

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

/**
 * For datasets, the equals() method just checks keys and values.
 *//* w w  w.j a  va 2  s . c o  m*/
@Test
public void testEquals() {
    PolynomialFunction2D f1 = new PolynomialFunction2D(new double[] { 1.0, 2.0 });
    PolynomialFunction2D f2 = new PolynomialFunction2D(new double[] { 1.0, 2.0 });
    assertTrue(f1.equals(f2));
    f1 = new PolynomialFunction2D(new double[] { 2.0, 3.0 });
    assertFalse(f1.equals(f2));
    f2 = new PolynomialFunction2D(new double[] { 2.0, 3.0 });
    assertTrue(f1.equals(f2));
}