private List<View> addView(View view,List<View> cache){
  if (cache == null) {
    cache=new LinkedList<View>();
  }
  cache.add(view);
  return cache;
}

private List < View > addView ( View view , List < View > cache ) { if ( cache == null ) { cache = new LinkedList < View > ( ) ; } cache . add ( view ) ; return cache ; }
adds view to specified cache . creates a cache list if it is null .
