Example usage for org.jfree.data DomainOrder hashCode

List of usage examples for org.jfree.data DomainOrder hashCode

Introduction

In this page you can find the example usage for org.jfree.data DomainOrder hashCode.

Prototype

@Override
public int hashCode() 

Source Link

Document

Returns a hash code value for the object.

Usage

From source file:org.jfree.data.DomainOrderTest.java

/**
 * Two objects that are equal are required to return the same hashCode.
 *///from  ww w . j a  va2  s  . co m
@Test
public void testHashCode() {
    DomainOrder d1 = DomainOrder.ASCENDING;
    DomainOrder d2 = DomainOrder.ASCENDING;
    assertTrue(d1.equals(d2));
    int h1 = d1.hashCode();
    int h2 = d2.hashCode();
    assertEquals(h1, h2);
}