@Override
	public String next() {
		if (!hasNext()) {
			throw new NoSuchElementException(toString() + " ended");
		}

		current = String.format(format, generator.next());

		return current();
	}
@ Override public String next ( ) { if ( ! hasNext ( ) ) { throw new NoSuchElementException ( toString ( ) + " ended" ) ; } current = String . format ( format , generator . next ( ) ) ; return current ( ) ; }
Returns the next generated value.

@return the next generated value.

@throws java.util.NoSuchElementException if the iteration has no more value.