|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jmlspecs.jmlunit.strategies.ByteAbstractIterator
org.jmlspecs.jmlunit.strategies.ByteArrayIterator
A ByteIterator over arrays of byte elements.
| Field Summary | |
private byte[] |
elems
The elements |
private int |
next
The next element's index (zero based) |
| Constructor Summary | |
|
ByteArrayIterator(byte[] elems)
Initialize this iterator to iterate over a clone of the array |
protected |
ByteArrayIterator(int next,
byte[] 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. |
byte |
getByte()
Return the current byte in this iterator. |
String |
toString()
|
| Methods inherited from class org.jmlspecs.jmlunit.strategies.ByteAbstractIterator |
get |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private int next
private byte[] elems
| Constructor Detail |
public ByteArrayIterator(byte[] elems)
protected ByteArrayIterator(int next,
byte[] elems)
| Method Detail |
public boolean atEnd()
IndefiniteIterator
public byte getByte()
ByteIterator
public void advance()
IndefiniteIterator
public Object clone()
ByteIterator
clone in interface ByteIteratorclone in class ByteAbstractIteratorpublic String toString()
toString in class Object
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||