Example usage for org.jfree.data RangeType hashCode

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

Introduction

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

Prototype

@Override
public int hashCode() 

Source Link

Document

Returns a hash code value for the object.

Usage

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

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