org.jmlspecs.jmlunit.strategies
Class IntAbstractIterator
java.lang.Object
org.jmlspecs.jmlunit.strategies.IntAbstractIterator
- All Implemented Interfaces:
- Cloneable, IndefiniteIterator, IntIterator
- Direct Known Subclasses:
- IntAbstractFilteringIteratorDecorator, IntArrayIterator, IntCompositeIterator
- public abstract class IntAbstractIterator
- extends Object
- implements IntIterator
Common code for iterators over values of type int that
implement the IntIterator interface.
- Author:
- Gary T. Leavens
|
Method Summary |
Object |
clone()
Return a copy of this iterator in the same state as this object. |
Object |
get()
Return the current element in this iteration. |
IntAbstractIterator
public IntAbstractIterator()
get
public Object get()
- Description copied from interface:
IndefiniteIterator
- Return the current element in this iteration. This method may
be called multiple times, and does not advance the state of the
iterator when it is called. The idea is to permit several
similar copies to be returned (e.g., clones) each time it is
called.
- Specified by:
get in interface IntIterator
clone
public Object clone()
- Description copied from interface:
IntIterator
- Return a copy of this iterator in the same state as this object.
- Specified by:
clone in interface IntIterator- Overrides:
clone in class Object
JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.