}
public boolean retainAll(LongIterable source)
{
int oldSize = ObjectLongHashMap.this.size();
final LongSet sourceSet = source instanceof LongSet ? (LongSet) source : source.toSet();
ObjectLongHashMap<K> retained = ObjectLongHashMap.this.select(new ObjectLongPredicate<K>()
{
public boolean accept(K object, long value)
{
return sourceSet.contains(value);
}
});
if (retained.size() != oldSize)
{
ObjectLongHashMap.this.keys = retained.keys;