Concept extends PartiallyOrdered<Concept> { @Override public boolean equals(final Object that) { if (!(that instanceof Concept)) { return false; } if (that == this) { return true; } Concept concept = (Concept) that; return concept.extent.equals(this.extent) && concept.intent.equals(this.intent); } Concept(final MutableBitSet extent, final MutableBitSet intent); MutableBitSet extent(); MutableBitSet intent(); @Override boolean apply(final Concept that); @Override boolean isLessThan(final Concept that); @Override boolean isLessOrEqualTo(final Concept that); @Override boolean isGreaterThan(final Concept that); @Override boolean isGreaterOrEqualTo(final Concept that); @Override boolean equals(final Object that); @Override int hashCode(); @Override String toString(); @Override Concept intersect(final Concept that); @Override Concept union(final Concept that); @Override double measure();  }
@Test public void testEquals() { assertTrue(X.equals(X)); assertFalse(W.equals(X)); }