@Override
		public T next() {
			if (!hasNext()) {
				throw new NoSuchElementException();
			}

			removed = false;
			return data[nextIndex++];
		}
Return an array of {@code T} with length {@code capacity}.

@param capacity the length of the array to return
@return the newly constructed array
runtime/Java/src/org/antlr/v4/runtime/misc/Array2DHashSet.java