@Test public void testGetNot() { int rowCount = r.nextInt(BOUND); int id = r.nextInt(rowCount); ImmutableBitMap im = IdBitMap.of(id); ImmutableBitMap not = im.getNot(rowCount); for (int i = 0; i < rowCount; i++) { if (i != id && !not.contains(i)) { fail(); } } if (not.contains(id)) { fail(); } }
public static ImmutableBitMap of(int id) { return new IdBitMap(id); }
IdBitMap extends RangeBitmap { public static ImmutableBitMap of(int id) { return new IdBitMap(id); } }
IdBitMap extends RangeBitmap { public static ImmutableBitMap of(int id) { return new IdBitMap(id); } private  IdBitMap(int id); }
IdBitMap extends RangeBitmap { public static ImmutableBitMap of(int id) { return new IdBitMap(id); } private  IdBitMap(int id); int getId(); static ImmutableBitMap of(int id); @Override ImmutableBitMap getAnd(ImmutableBitMap index); @Override ImmutableBitMap getOr(ImmutableBitMap index); @Override ImmutableBitMap clone(); @Override BitMapType getType(); @Override byte[] toBytes(); @Override String toString(); }
IdBitMap extends RangeBitmap { public static ImmutableBitMap of(int id) { return new IdBitMap(id); } private  IdBitMap(int id); int getId(); static ImmutableBitMap of(int id); @Override ImmutableBitMap getAnd(ImmutableBitMap index); @Override ImmutableBitMap getOr(ImmutableBitMap index); @Override ImmutableBitMap clone(); @Override BitMapType getType(); @Override byte[] toBytes(); @Override String toString();  }