| java.lang.Object org.mandarax.util.TermIterator
TermIterator | final public class TermIterator implements java.util.Enumeration,java.util.Iterator(Code) | | Iterator for terms. The iterator provides a simple mean for
iterating but avoiding casting as it is the case when using
the java.util.Enumeration or java.util.Iterator
interface. But both interfaces are also supported.
author: Jens Dietrich version: 3.4 <7 March 05> since: 1.0 |
TermIterator | public TermIterator(Term[] t)(Code) | | Constructor.
Parameters: t - an array of terms |
hasMoreElements | public boolean hasMoreElements()(Code) | | Indicates whether there are more elements.
Duplicates the functionality of hasMoreTerms() in order to implement
the java.util.Enumeration interface.
true if there are more elements, false otherwise |
hasMoreTerms | public boolean hasMoreTerms()(Code) | | Indicates whether there are more terms.
true if there are more elements, false otherwise |
hasNext | public boolean hasNext()(Code) | | Indicates whether there are more elements.
Duplicates the functionality of hasMoreTerms() in order to implement
the java.util.Iterator interface.
true if there are more elements, false otherwise |
next | public Object next()(Code) | | Get the next element.
Duplicates the functionality of nextTerm() in order to implement
the java.util.Iterator interface.
the next term |
nextElement | public Object nextElement()(Code) | | Get the next term.
Duplicates the functionality of nextTerm() in order to implement
the java.util.Enumeration interface.
the next term |
nextTerm | public Term nextTerm()(Code) | | Get the next term.
the next term |
remove | public void remove()(Code) | | Remove an element. Not supported, throws a UnsupportedOperationException .
|
|
|