public List<T> toList(){
  @SuppressWarnings("unchecked") T[] copiedElements=(T[])new Object[numElements];
  System.arraycopy(elements,0,copiedElements,0,numElements);
  return Arrays.asList(copiedElements);
}

public List < T > toList ( ) { @ SuppressWarnings ( "unchecked" ) T [ ] copiedElements = ( T [ ] ) new Object [ numElements ] ; System . arraycopy ( elements , 0 , copiedElements , 0 , numElements ) ; return Arrays . asList ( copiedElements ) ; }
returns a unbacked list of elements in this set .
