|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jmlspecs.jmlunit.strategies.CharAbstractIterator
org.jmlspecs.jmlunit.strategies.CharArrayIterator
A CharIterator over arrays of char elements.
| Field Summary | |
private char[] |
elems
The elements |
private int |
next
The next element's index (zero based) |
| Constructor Summary | |
|
CharArrayIterator(char[] elems)
Initialize this iterator to iterate over a clone of the array |
protected |
CharArrayIterator(int next,
char[] elems)
Initialize this iterator to iterate over a clone of the array, starting at the given next index |
| Method Summary | |
void |
advance()
Advance the state of this iteration to the next position. |
boolean |
atEnd()
Is this iterator at its end? |
Object |
clone()
Return a copy of this iterator in the same state as this object. |
char |
getChar()
Return the current char in this iterator. |
String |
toString()
|
| Methods inherited from class org.jmlspecs.jmlunit.strategies.CharAbstractIterator |
get |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private int next
private char[] elems
| Constructor Detail |
public CharArrayIterator(char[] elems)
protected CharArrayIterator(int next,
char[] elems)
| Method Detail |
public boolean atEnd()
IndefiniteIterator
public char getChar()
CharIterator
public void advance()
IndefiniteIterator
public Object clone()
CharIterator
clone in interface CharIteratorclone in class CharAbstractIteratorpublic String toString()
toString in class Object
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||