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

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

Introduction

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

Prototype

@Override
public boolean equals(Object object) 

Source Link

Document

Tests the equality of this object against an arbitrary Object.

Usage

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

/**
 * Two objects that are equal are required to return the same hashCode.
 */// w  w  w  . j a  va 2 s.c  om
@Test
public void testHashcode() {
    FixedMillisecond m1 = new FixedMillisecond(500000L);
    FixedMillisecond m2 = new FixedMillisecond(500000L);
    assertTrue(m1.equals(m2));
    int h1 = m1.hashCode();
    int h2 = m2.hashCode();
    assertEquals(h1, h2);
}