public boolean retainAll(ShortIterable source)
{
int oldSize = this.size();
final ShortSet sourceSet = source instanceof ShortSet ? (ShortSet) source : source.toSet();
ShortArrayList retained = this.select(new ShortPredicate()
{
public boolean accept(short value)
{
return sourceSet.contains(value);
}