Example usage for org.jfree.data.time TimePeriodValue equals

List of usage examples for org.jfree.data.time TimePeriodValue equals

Introduction

In this page you can find the example usage for org.jfree.data.time TimePeriodValue equals.

Prototype

@Override
public boolean equals(Object obj) 

Source Link

Document

Tests this object for equality with the target object.

Usage

From source file:org.jfree.data.time.TimePeriodValueTest.java

/**
 * Test that an instance is equal to itself.
 *///  ww  w .j a v  a 2  s . c o m
@Test
public void testEqualsSelf() {
    TimePeriodValue tpv = new TimePeriodValue(new Day(), 55.75);
    assertTrue(tpv.equals(tpv));
}

From source file:org.jfree.data.time.TimePeriodValueTest.java

/**
 * Tests the equals() method./*from  w  w  w .ja  va2  s  . c om*/
 */
@Test
public void testEquals() {
    TimePeriodValue tpv1 = new TimePeriodValue(new Day(30, 7, 2003), 55.75);
    TimePeriodValue tpv2 = new TimePeriodValue(new Day(30, 7, 2003), 55.75);
    assertTrue(tpv1.equals(tpv2));
    assertTrue(tpv2.equals(tpv1));
}