public DsnLayerStructure(Collection<DsnLayer> p_layer_list){
  arr=new DsnLayer[p_layer_list.size()];
  Iterator<DsnLayer> it=p_layer_list.iterator();
  for (int i=0; i < arr.length; ++i) {
    arr[i]=it.next();
  }
}

public DsnLayerStructure ( Collection < DsnLayer > p_layer_list ) { arr = new DsnLayer [ p_layer_list . size ( ) ] ; Iterator < DsnLayer > it = p_layer_list . iterator ( ) ; for ( int i = 0 ; i < arr . length ; ++ i ) { arr [ i ] = it . next ( ) ; } }
creates a new instance of layerstructure from a list of layers
