
net.loomchild.segment.TextIterator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of segment Show documentation
Show all versions of segment Show documentation
Library used to split text into segments.
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