List of usage examples for org.jfree.data DomainOrder equals
@Override public boolean equals(Object obj)
true
if this object is equal to the specified object, and false
otherwise. 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); }