public LongArray(boolean ordered,long[] array){
  this(ordered,array.length);
  size=array.length;
  System.arraycopy(array,0,items,0,size);
}

public LongArray ( boolean ordered , long [ ] array ) { this ( ordered , array . length ) ; size = array . length ; System . arraycopy ( array , 0 , items , 0 , size ) ; }
creates a new array containing the elements in the specified array . the capacity is set to the number of elements , so any subsequent elements added will cause the backing array to be grown .
