Convert to generics

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/branches/collections_jdk5_branch@468709 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stephen Colebourne 2006-10-28 17:49:04 +00:00
parent ad8a09a5e3
commit cda4ce8d78
1 changed files with 7 additions and 7 deletions

View File

@ -45,7 +45,7 @@ import java.util.Iterator;
* *
* @author Stephen Colebourne * @author Stephen Colebourne
*/ */
public interface MapIterator extends Iterator { public interface MapIterator<K, V> extends Iterator<K> {
/** /**
* Checks to see if there are more entries still to be iterated. * Checks to see if there are more entries still to be iterated.
@ -60,7 +60,7 @@ public interface MapIterator extends Iterator {
* @return the next key in the iteration * @return the next key in the iteration
* @throws java.util.NoSuchElementException if the iteration is finished * @throws java.util.NoSuchElementException if the iteration is finished
*/ */
Object next(); K next();
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
/** /**
@ -70,7 +70,7 @@ public interface MapIterator extends Iterator {
* @return the current key * @return the current key
* @throws IllegalStateException if <code>next()</code> has not yet been called * @throws IllegalStateException if <code>next()</code> has not yet been called
*/ */
Object getKey(); K getKey();
/** /**
* Gets the current value, which is the value associated with the last key * Gets the current value, which is the value associated with the last key
@ -79,7 +79,7 @@ public interface MapIterator extends Iterator {
* @return the current value * @return the current value
* @throws IllegalStateException if <code>next()</code> has not yet been called * @throws IllegalStateException if <code>next()</code> has not yet been called
*/ */
Object getValue(); V getValue();
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
/** /**
@ -104,6 +104,6 @@ public interface MapIterator extends Iterator {
* @throws IllegalStateException if <code>remove()</code> has been called since the * @throws IllegalStateException if <code>remove()</code> has been called since the
* last call to <code>next()</code> * last call to <code>next()</code>
*/ */
Object setValue(Object value); V setValue(V value);
} }