All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.loomchild.segment.TextIterator Maven / Gradle / Ivy

The newest version!
package net.loomchild.segment;

import java.util.Iterator;

/**
 * Text iterator interface.
 * 
 * @author loomchild
 */
public interface TextIterator extends Iterator {

	/**
	 * @return next segment in text, or null if end of text has been
	 *         reached.
	 */
	public String next();

	/**
	 * @return true if there are more segments
	 */
	public boolean hasNext();

	/**
	 * Unsupported operation.
	 * 
	 * @throws UnsupportedOperationException
	 */
	public void remove();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy