com.wcohen.secondstring.expt
Class MatchData.MatchIterator

java.lang.Object
  |
  +--com.wcohen.secondstring.expt.MatchData.MatchIterator
All Implemented Interfaces:
java.util.Iterator
Enclosing class:
MatchData

public class MatchData.MatchIterator
extends java.lang.Object
implements java.util.Iterator

Iterates over all stored StringWrappers


Constructor Summary
MatchData.MatchIterator()
           
 
Method Summary
 java.lang.String getSource()
          Return the source of the last StringWrapper.
 boolean hasNext()
           
 java.lang.Object next()
          Returns the next StringWrapper as an object.
 StringWrapper nextStringWrapper()
          Return the next StringWrapper.
 void remove()
          Not implemented.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MatchData.MatchIterator

public MatchData.MatchIterator()
Method Detail

remove

public void remove()
Not implemented.

Specified by:
remove in interface java.util.Iterator

getSource

public java.lang.String getSource()
Return the source of the last StringWrapper.


nextStringWrapper

public StringWrapper nextStringWrapper()
Return the next StringWrapper.


hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator

next

public java.lang.Object next()
Returns the next StringWrapper as an object.

Specified by:
next in interface java.util.Iterator