public boolean retainAll(BooleanIterable source)
{
int oldSize = ByteBooleanHashMap.this.size();
final BooleanSet sourceSet = source instanceof BooleanSet ? (BooleanSet) source : source.toSet();
ByteBooleanHashMap retained = ByteBooleanHashMap.this.select(new ByteBooleanPredicate()
{
public boolean accept(byte key, boolean value)
{
return sourceSet.contains(value);
}