public AtlasMessagesAdapter addCellFactories(AtlasCellFactory... cellFactories){
  for (  AtlasCellFactory CellFactory : cellFactories) {
    CellFactory.setStyle(mMessageStyle);
    mCellFactories.add(CellFactory);
    mViewTypeCount++;
    CellType me=new CellType(true,CellFactory);
    mCellTypesByViewType.put(mViewTypeCount,me);
    mMyViewTypesByCell.put(CellFactory,mViewTypeCount);
    mViewTypeCount++;
    CellType notMe=new CellType(false,CellFactory);
    mCellTypesByViewType.put(mViewTypeCount,notMe);
    mTheirViewTypesByCell.put(CellFactory,mViewTypeCount);
  }
  return this;
}

public AtlasMessagesAdapter addCellFactories ( AtlasCellFactory ... cellFactories ) { for ( AtlasCellFactory CellFactory : cellFactories ) { CellFactory . setStyle ( mMessageStyle ) ; mCellFactories . add ( CellFactory ) ; mViewTypeCount ++ ; CellType me = new CellType ( true , CellFactory ) ; mCellTypesByViewType . put ( mViewTypeCount , me ) ; mMyViewTypesByCell . put ( CellFactory , mViewTypeCount ) ; mViewTypeCount ++ ; CellType notMe = new CellType ( false , CellFactory ) ; mCellTypesByViewType . put ( mViewTypeCount , notMe ) ; mTheirViewTypesByCell . put ( CellFactory , mViewTypeCount ) ; } return this ; }
registers one or more cellfactories for the atlasmessagesadapter to manage . cellfactories know which messages they can render , and handle view caching , creation , and binding .
