LongBitMask extends SingleLongBitMask implements BitMask { @Override public boolean intersects(BitMask mask) { return mask instanceof LongBitMask ? (this.mask & ((LongBitMask)mask).asLong()) != 0 : mask.intersects(this); } LongBitMask();  LongBitMask(long mask); @Override BitMask set(int index); @Override BitMask setAll(BitMask mask); @Override BitMask reset(int index); @Override BitMask resetAll(BitMask mask); @Override boolean isSet(int index); @Override boolean isAllSet(); @Override boolean isEmpty(); @Override boolean intersects(BitMask mask); long asLong(); @Override LongBitMask clone(); @Override String getInstancingStatement();  }
@Test public void testIntersects() { Assert.assertFalse(new LongBitMask(0L).intersects(EmptyBitMask.get())); Assert.assertFalse(new LongBitMask(0L).intersects(new LongBitMask(0L))); Assert.assertTrue(new LongBitMask(2L).intersects(new LongBitMask(2L))); }