@Test public void testFlipFlapBetweenRandomFullAndEmptyBitSet() { final Random random = new Random(); final int nbitsPerBlock = 1024 * Long.SIZE; final int blocks = 50; final BitSet bitset = new BitSet(nbitsPerBlock * blocks); for (int block = 0; block < blocks * nbitsPerBlock; block += nbitsPerBlock) { int type = random.nextInt(3); switch (type) { case 0: appendRandomBitset(random, block, bitset, nbitsPerBlock); break; case 1: bitset.set(block, block + nbitsPerBlock); break; default: break; } } final RoaringBitmap bitmap = BitSetUtil.bitmapOf(bitset); assertEqualBitsets(bitset, bitmap); }
public static RoaringBitmap bitmapOf(final BitSet bitSet) { return bitmapOf(bitSet.toLongArray()); }
BitSetUtil { public static RoaringBitmap bitmapOf(final BitSet bitSet) { return bitmapOf(bitSet.toLongArray()); } }
BitSetUtil { public static RoaringBitmap bitmapOf(final BitSet bitSet) { return bitmapOf(bitSet.toLongArray()); }  }
BitSetUtil { public static RoaringBitmap bitmapOf(final BitSet bitSet) { return bitmapOf(bitSet.toLongArray()); }  static RoaringBitmap bitmapOf(final BitSet bitSet); static RoaringBitmap bitmapOf(final long[] words); static boolean equals(final BitSet bitset, final RoaringBitmap bitmap); }
BitSetUtil { public static RoaringBitmap bitmapOf(final BitSet bitSet) { return bitmapOf(bitSet.toLongArray()); }  static RoaringBitmap bitmapOf(final BitSet bitSet); static RoaringBitmap bitmapOf(final long[] words); static boolean equals(final BitSet bitset, final RoaringBitmap bitmap);  }