@Test public void allOf() throws Exception { IntSet one = IntSet.allOf(4, 2); assertFalse(one.contains(0)); assertFalse(one.contains(1)); assertTrue(one.contains(2)); assertFalse(one.contains(3)); assertTrue(one.contains(4)); assertFalse(one.contains(5)); }
static IntSet allOf(int x, int... xs) { BitSet s = new BitSet(); s.set(x); for (int v : xs) s.set(v); return new BinarySet(s); }
IntSet { static IntSet allOf(int x, int... xs) { BitSet s = new BitSet(); s.set(x); for (int v : xs) s.set(v); return new BinarySet(s); } }
IntSet { static IntSet allOf(int x, int... xs) { BitSet s = new BitSet(); s.set(x); for (int v : xs) s.set(v); return new BinarySet(s); }  }
IntSet { static IntSet allOf(int x, int... xs) { BitSet s = new BitSet(); s.set(x); for (int v : xs) s.set(v); return new BinarySet(s); }   }
IntSet { static IntSet allOf(int x, int... xs) { BitSet s = new BitSet(); s.set(x); for (int v : xs) s.set(v); return new BinarySet(s); }    }