Example usage for org.jfree.data DomainOrder equals

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

Introduction

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

Prototype

@Override
public boolean equals(Object obj) 

Source Link

Document

Returns true if this object is equal to the specified object, and false otherwise.

Usage

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

/**
 * Two objects that are equal are required to return the same hashCode.
 *///  w  w  w . j ava  2 s  .  c  om
@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);
}