JML

org.jmlspecs.jmlunit.strategies
Class DoubleAbstractIterator

java.lang.Object
  extended byorg.jmlspecs.jmlunit.strategies.DoubleAbstractIterator
All Implemented Interfaces:
Cloneable, DoubleIterator, IndefiniteIterator
Direct Known Subclasses:
DoubleAbstractFilteringIteratorDecorator, DoubleArrayIterator, DoubleCompositeIterator

public abstract class DoubleAbstractIterator
extends Object
implements DoubleIterator

Common code for iterators over values of type double that implement the DoubleIterator interface.

Author:
Gary T. Leavens

Constructor Summary
DoubleAbstractIterator()
           
 
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.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jmlspecs.jmlunit.strategies.DoubleIterator
getDouble
 
Methods inherited from interface org.jmlspecs.jmlunit.strategies.IndefiniteIterator
advance, atEnd
 

Constructor Detail

DoubleAbstractIterator

public DoubleAbstractIterator()
Method Detail

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 DoubleIterator

clone

public Object clone()
Description copied from interface: DoubleIterator
Return a copy of this iterator in the same state as this object.

Specified by:
clone in interface DoubleIterator
Overrides:
clone in class Object

JML

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.