public boolean retainAll(IntIterable source)
{
int oldSize = this.size();
final IntSet sourceSet = source instanceof IntSet ? (IntSet) source : source.toSet();
IntHashBag retained = this.select(new IntPredicate()
{
public boolean accept(int key)
{
return sourceSet.contains(key);
}