public JoddArrayList(Collection<? extends E> collection){
  buffer=collection.toArray();
  size=buffer.length;
  if (buffer.getClass() != Object[].class) {
    Object[] copy=new Object[size];
    System.arraycopy(buffer,0,copy,0,size);
    buffer=copy;
  }
  start=0;
  end=size;
  pivotIndex=pivotType.calculate(size);
}

public JoddArrayList ( Collection < ? extends E > collection ) { buffer = collection . toArray ( ) ; size = buffer . length ; if ( buffer . getClass ( ) != Object [ ] . class ) { Object [ ] copy = new Object [ size ] ; System . arraycopy ( buffer , 0 , copy , 0 , size ) ; buffer = copy ; } start = 0 ; end = size ; pivotIndex = pivotType . calculate ( size ) ; }
constructs a list containing the elements of the specified collection , in the order they are returned by the collection ' s iterator .
