src/infinity/ecs/utils/IndexedCollection.java
/**
	 * Resizes the collection to the specified capacity. Can be used to shrink or enlarge the
	 * internal array. If the array is reduced in size, all overlapping elements are removed.
	 * 
	 * @param capacity The desired capacity.
	 */
Resizes the collection to the specified capacity. Can be used to shrink or enlarge the
internal array. If the array is reduced in size, all overlapping elements are removed.

@param capacity The desired capacity.
Resizes the collection to the specified capacity . Can be used to shrink or enlarge the internal array . If the array is reduced in size all overlapping elements are removed . @param capacity The desired capacity .
private void resize(int capacity) {
		T[] newElements = (T[])new Object[capacity];
		int length = Math.min(capacity, _elements.length);
		System.arraycopy(_elements, 0, newElements, 0, length);
		_elements = newElements;
	}
private void resize ( int capacity ) { T [ ] newElements = ( T [ ] ) new Object [ capacity ] ; int length = Math . min ( capacity , _elements . length ) ; System . arraycopy ( _elements , 0 , newElements , 0 , length ) ; _elements = newElements ; }
Resizes the collection to the specified capacity.
Resizes the collection to the specified capacity .