Example usage for org.jfree.data RangeType equals

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

Introduction

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

/**
 * Two objects that are equal are required to return the same hashCode.
 *//* w  ww.  j  av  a2s . c  o  m*/
@Test
public void testHashCode() {
    RangeType r1 = RangeType.FULL;
    RangeType r2 = RangeType.FULL;
    assertTrue(r1.equals(r2));
    int h1 = r1.hashCode();
    int h2 = r2.hashCode();
    assertEquals(h1, h2);
}