public boolean addAllUnique(List<Album> ps){
  boolean didChange=false;
synchronized (mAlbums) {
    for (    Album p : ps) {
      if (!mAlbums.contains(p) && p.isLoaded()) {
        mAlbums.add(p);
        didChange=true;
      }
    }
    if (didChange) {
      sortListLocked();
    }
  }
  return didChange;
}

public boolean addAllUnique ( List < Album > ps ) { boolean didChange = false ; synchronized ( mAlbums ) { for ( Album p : ps ) { if ( ! mAlbums . contains ( p ) && p . isLoaded ( ) ) { mAlbums . add ( p ) ; didChange = true ; } } if ( didChange ) { sortListLocked ( ) ; } } return didChange ; }
add all the elements of the input collection assuming they ' re not already in the adapter
