protected ArrayList cloneMap(ArrayList list){
  if (list == null) {
    list=new ArrayList(5);
  }
  list.clear();
  if (nodes != null) {
    final int size=nodes.size();
    for (int i=0; i < size; ++i) {
      list.add(nodes.get(i));
    }
  }
  return list;
}

protected ArrayList cloneMap ( ArrayList list ) { if ( list == null ) { list = new ArrayList ( 5 ) ; } list . clear ( ) ; if ( nodes != null ) { final int size = nodes . size ( ) ; for ( int i = 0 ; i < size ; ++ i ) { list . add ( nodes . get ( i ) ) ; } } return list ; }
non - dom : copy content of this map into the specified arraylist
