public IdentityArrayList(Collection<? extends E> c){
  elementData=c.toArray();
  size=elementData.length;
  if (elementData.getClass() != Object[].class)   elementData=Arrays.copyOf(elementData,size,Object[].class);
}

public IdentityArrayList ( Collection < ? extends E > c ) { elementData = c . toArray ( ) ; size = elementData . length ; if ( elementData . getClass ( ) != Object [ ] . class ) elementData = Arrays . copyOf ( elementData , size , Object [ ] . class ) ; }
constructs a list containing the elements of the specified collection , in the order they are returned by the collection ' s iterator .
