com.rubecula.util
Interface Iterative


public interface Iterative

This interface defines the property of getting an iterator on the object.
It's a pity that this interface isn't itself part of the Collections framework. If you were to substitute Collection for this interface you would have to implement a plethora of mutating methods in addition to the one here.

Since:
V_0_3 // TODO Note that this is currently unused. It could be removed, although I feel that it should be useful in future.
Version:
$Revision: 1.4 $
Author:
Robin Hillyard

Method Summary
 java.util.Iterator iterator()
          Returns an iterator over the elements in this collection.
 

Method Detail

iterator

public java.util.Iterator iterator()
Returns an iterator over the elements in this collection. There are no guarantees concerning the order in which the elements are returned (unless this collection is an instance of some class that provides a guarantee).

Returns:
an Iterator over the elements in this collection