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

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

Introduction

In this page you can find the example usage for org.jfree.data.function PowerFunction2D 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.PowerFunction2DTest.java

/**
 * For datasets, the equals() method just checks keys and values.
 *//*from  w  w w. j av  a 2 s . co  m*/
@Test
public void testEquals() {
    PowerFunction2D f1 = new PowerFunction2D(1.0, 2.0);
    PowerFunction2D f2 = new PowerFunction2D(1.0, 2.0);
    assertTrue(f1.equals(f2));
    f1 = new PowerFunction2D(2.0, 3.0);
    assertFalse(f1.equals(f2));
    f2 = new PowerFunction2D(2.0, 3.0);
    assertTrue(f1.equals(f2));
}