Concept extends PartiallyOrdered<Concept> { @Override public Concept union(final Concept that) { return new Concept(this.or(that), 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 testUnion() { Concept union = S.union(T); assertEquals(union.extent(), bits(0, 1)); assertEquals(union.intent(), S.intent()); }